Opened 17 years ago
Closed 16 years ago
#3494 closed Bug (fixed)
Context menu is too narrow in some translations
| Reported by: | Artur Formella | Owned by: | Alfonso Martínez de Lizarrondo |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.2 |
| Component: | UI : Floating Panel | Version: | SVN (CKEditor) - OLD |
| Keywords: | Confirmed Review+ | Cc: |
Description
Context menu is too narrow in some translations. Please see attached image.
Attachments (3)
Change History (14)
Changed 17 years ago by
comment:1 Changed 17 years ago by
| Keywords: | Confirmed added |
|---|---|
| Milestone: | CKEditor 3.0 → CKEditor 3.1 |
comment:4 Changed 16 years ago by
| Milestone: | CKEditor 3.1 → CKEditor 3.2 |
|---|
comment:5 Changed 16 years ago by
| Owner: | set to Alfonso Martínez de Lizarrondo |
|---|---|
| Status: | new → assigned |
comment:6 Changed 16 years ago by
| Keywords: | Review? added |
|---|
I would like to know if the current approach for the patch is right.
Making it work for Firefox, Opera and Safari is quite straight forward, but IE is quite different as expected: if the panel is loaded with the alpha opacity filter applied, then the elements don't overflow, so it's not possible to get their real scrollWidth. In order to workaround that, I have moved that attributes in the kama skin to a new rule with a class that it's set only after the width has been computed.
I haven't tried to test thoroughly the patch, I just want to know if the coding looks OK or if it can be done in a better way. In the skin I've disabled also the _width rule for IE6, I think that the _overflow can be removed also, I'll test that approach for the final patch unless someone states a reason why they might be required.
comment:7 Changed 16 years ago by
| Component: | General → UI : Floating Panel |
|---|---|
| Keywords: | Review- added; Review? removed |
| Version: | → SVN (CKEditor) |
The patch works well for me with the following limitations:
- Doesn't work for other panels (combobox);
- Doesn't work in Safari;
comment:8 Changed 16 years ago by
I was focusing just on the context menu, as I thought that other panels are discussed in #4559 Should I work also on that? It could be a matter of moving this new code outside of the if ( block.autoSize ) check but I don't want to do it if that's not the expected behavior.
A last minute change broke compatibility with Safari, but as I said I was more worried about the structure of the code (changing the skin to include a new class in the frame). If that's ok, I'll work to review that it works properly in all browsers.
Thanks for the comments.
comment:9 Changed 16 years ago by
| Keywords: | Review? added; Review- removed |
|---|
The patch covers only the context menu. I've tried to make it work for other floating panels, but I can't find what's messing there with the widths in IE, I'm not able to make it work, so I propose to fix the context menu for the moment and focus later in the rest of panels.
I've tested it quickly in RTL as I don't know which language might have long translations for the context menu.
comment:10 Changed 16 years ago by
| Keywords: | Review+ added; Review? removed |
|---|
The patch works well for context menu.

We should have auto-width for the menus, just like V2.