Opened 15 years ago
Closed 12 years ago
#4559 closed Bug (duplicate)
Menus buttons width
Reported by: | jean-mat grimaldi | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Toolbar | Version: | SVN (CKEditor) - OLD |
Keywords: | Discussion | Cc: |
Description
Hi,
I think menu buttons width is bad.
When changing language in 'fr' you can see the bug in attached image.
Thx
Jean-mat
Attachments (1)
Change History (13)
Changed 15 years ago by
Attachment: | ticket_buttons_styles.jpg added |
---|
comment:1 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
So it's perhaps a bad choice to use label tags for menus' headers, your solution cannot be easily implemented in multinlingual sites and make the ckeditor integration complex (css depending on lang, hmm it's strange ...)
Moreover, you are not able to find the good configuration for the ckeditor.com demo pages itself. The capture has be done on these pages ;-).
So i think this ticket must be re-open.
Cheers
comment:3 Changed 15 years ago by
Keywords: | Discussion added |
---|---|
Milestone: | CKEditor 3.1 → CKEditor 3.x |
Resolution: | invalid |
Status: | closed → reopened |
Version: | → SVN (CKEditor) |
Leave the ticket open and call for discussion.
comment:4 Changed 15 years ago by
Component: | Core : Styles → UI : Toolbar |
---|
comment:7 Changed 15 years ago by
Hi,
i think the solution is really simple.
in editor.css just add "display: block;" in this declaration :
.cke_skin_kama .cke_browser_gecko .cke_rcombo .cke_label, .cke_skin_kama .cke_browser_webkit .cke_rcombo .cke_label { float:left; }
remarks :
- the float left has no sense with inline blocks.
- The problem with my solution could be the righttoleft or lefttoright configuration
- the bug must be fixed in all skins
Happy end year feasts to everybody
comment:8 Changed 15 years ago by
Hmm my solution doesn't work in all situations.
The real problem cames from these kind of declarations :
.cke_skin_kama .cke_fontSize .cke_text {
width:25px;
}
.cke_skin_kama .cke_rcombo .cke_text {
width:60px;
}
These declarations could be just replaced by a padding on label to get a good design in all languages :
.cke_inline_label {
padding-right:0.5em;
}
comment:9 Changed 15 years ago by
You're not really fixing anything with this change. You're simply making the font size combo having the default width, which is 60px. Whatever attempt to remove the fixed size of these combos can make the toolbar elements start dancing depending on the size of the combo texts, which is extremely undesirable.
comment:10 Changed 15 years ago by
Hi Fred,
You're right the dancing effect is indesirable. However, waiting for a more generic solution which will resize all buttons or menus in javascript, we can do a temporary small improvement :
the size button is fixed to 25px (really too small i think)
Just remove this declaration in editor.css will give to the fontSize button label the same width as other labels :
.cke_skin_kama .cke_fontSize .cke_text{width:25px;}
Best regards ;-)
comment:12 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
'Inline label' is very special as we must impose a fixed size on it, since it's not able to know potentially all the possible text size within it ( text may comes from the combo options ), so it's not a bug.
You could provide your own style if you see problems with your language, e.g. :