Opened 16 years ago
Last modified 16 years ago
#2474 confirmed Bug
An editor contained in a Div with overflow:auto can't be maximized.
Reported by: | Jason Wright | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I created an interface where an instancwe of FCKeditor needed to be placed inside of a div with overflow:auto;. When the maximize editor button is clicked the editor grows but not to full screen and a majority of the editor is covered by other page elements. I tested it with the latest release as well as the nightly download 8/19/08. There is a test site here using the nightly: http://dealerrevolution.com/admin/about.htm I also posted this on the message board: http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10939&sid=330db56903f3061c42e7da0c701b4b08
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Keywords: | Pending added |
---|
jasonsplace, could you attach file about.htm? Link http://dealerrevolution.com/admin/about.htm is unavailable and is important to confirm this bug.
comment:3 Changed 16 years ago by
Keywords: | Confirmed added; Pending removed |
---|
The problem is explained in the forums and my previous post, the stylesheet had something along the lines
#editorDiv { overflow:auto; }
According to the forums the problem is really that the removal of styles is based on Class and inline styles. If the stylesheet applies some style by Id (or any other selector), then it will remain and the maximize could fail.
I guess that the best solution would be to forget about removing the Class and focus just on the inline styles: store away anything that has been set and like FCKTools.ResetStyles apply some styles that reset anything that might mess the behavior: margin, padding, border, position, left, bottom, top, right, width, height, overflow...