Opened 16 years ago
Closed 16 years ago
#3506 closed Bug (fixed)
Combo panels do not align in FF
Reported by: | Damian | Owned by: | Tobiasz Cudnik |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | |
Keywords: | IBM Confirmed Review+ | Cc: |
Description (last modified by )
When selecting any of the Styles/Format/Font/Size combos, the panel is misplaced. It is slightly different for FF2 and FF3.
Reproduced on nightly build.
Attachments (3)
Change History (11)
Changed 16 years ago by
Attachment: | alignmentProblem.png added |
---|
comment:1 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Status: | new → assigned |
comment:2 Changed 16 years ago by
Keywords: | Confirmed added |
---|---|
Owner: | set to Tobiasz Cudnik |
comment:3 follow-up: 4 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Keywords: | Review? added |
comment:4 Changed 16 years ago by
Replying to tobiasz.cudnik:
FF doesn't stretch containers for floated contents if containers are empty (besides containing floated elements).
This description isn't really true, because floats generally doesn't stretch containers in normal cases. Problem with FF is that it incorrectly relocates container in our case.
comment:5 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
The fix looks simple but it's not 100% working - we're aiming to get the position of the rich combo boxes pixel-perfect in the major browsers. Yet the rich combos' positions are still off by (-1px, -1px) in FF3 after the patch.
The rich combo bug in FF3 is actually a fairly recent regression bug - it was working perfectly in FF3 back in r3476, for example. Now we're only at r3500 and for some reason it's no longer working correctly. In cases like this, it is often helpful to know exactly which change caused the bug. It is much better to be able to fix the direct cause of the problem instead of adding an indirect CSS fix which doesn't exactly fix the problem.
It should be possible to trace down the change that caused the bug fairly quickly by checking out the revisions between r3476 and r3500 in a binary search pattern and testing them out.
comment:6 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
You're right Martin, this regression has been introduced in [3483]. There was missing offsetParent update after introduction of new element in DOM structure.
comment:7 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
FF doesn't stretch containers for floated contents if containers are empty (besides containing floated elements). This patch seems to fix it using only css, simply floating also containers. Althought this cant be applied for other browsers.