Ticket #3494 (closed Bug: fixed)

Opened 16 months ago

Last modified 7 months ago

Context menu is too narrow in some translations

Reported by: arczi Owned by: alfonsoml
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

3494.jpg Download (39.7 KB) - added by arczi 16 months ago.
3494.patch Download (2.1 KB) - added by alfonsoml 7 months ago.
Partial patch
3494_2.patch Download (3.9 KB) - added by alfonsoml 7 months ago.
Context menu patch

Change History

Changed 16 months ago by arczi

Changed 16 months ago by fredck

  • keywords Confirmed added
  • milestone changed from CKEditor 3.0 to CKEditor 3.1

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

Changed 14 months ago by fredck

#4034 has been marked as DUP.

Changed 10 months ago by fredck

#4568 has been marked as DUP.

Changed 9 months ago by fredck

  • milestone changed from CKEditor 3.1 to CKEditor 3.2

Changed 7 months ago by alfonsoml

  • owner set to alfonsoml
  • status changed from new to assigned

Changed 7 months ago by alfonsoml

Partial patch

Changed 7 months ago by alfonsoml

  • 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.

Changed 7 months ago by garry.yao

  • keywords Review- added; Review? removed
  • version set to SVN (CKEditor)
  • component changed from General to UI : Floating Panel

The patch works well for me with the following limitations:

  1. Doesn't work for other panels (combobox);
  2. Doesn't work in Safari;

Changed 7 months ago by alfonsoml

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.

Changed 7 months ago by alfonsoml

Context menu patch

Changed 7 months ago by alfonsoml

  • 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.

Changed 7 months ago by garry.yao

  • keywords Review+ added; Review? removed

The patch works well for context menu.

Changed 7 months ago by alfonsoml

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [5047]

Note: See TracTickets for help on using tickets.