Ticket #997 (new Bug)

Opened 3 years ago

Last modified 2 years ago

Wrong position of panel on fixed positioned toolbar

Reported by: l0co Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: FCKeditor 2.4.3
Keywords: Confirmed Cc:

Description

We have the fckeditor toolbar located on outer div which is 'fixed' positioned (in gecko browser), in order to be global for the website. So, our:

oFCKeditor.Config[ "ToolbarLocation" ] = "Out:fckToolbar";

In this case the toolbar panels (eg. the font panel) are not positioned correctly. I have found the place in the code, which should be changed to fix it, but I have no time for now to look in the code for the style of toolbar panel container to create conditional clause, depended on the container position, but the fckeditor developers won't have a problem to insert the code like this there:

oIFrame.style.position = 'absolute';
if (fckeditor.toolbar.container.style.position == 'fixed')
  oIFrame.style.position = 'fixed';

The location of bug is indicated in attached fckpanel-fixed-position-bug.js file.

Attachments

fckpanel-fixed-position-bug.js Download (8.6 KB) - added by l0co 3 years ago.
The toolbar panel fixed position bug indication.

Change History

Changed 3 years ago by l0co

The toolbar panel fixed position bug indication.

Changed 3 years ago by l0co

I've realized that it's not so easy, because the panel is used in the editor context menu as well. So the solution must be more sophisticated, eg. looking upwards DOM hierarchy starting from panel parent, for the element fixed positioned, to set its position to 'fixed'?

Changed 3 years ago by fredck

  • keywords panel position fixed removed

Changed 2 years ago by w.olchawa

  • keywords Confirmed added
Note: See TracTickets for help on using tickets.