Opened 13 years ago
Closed 13 years ago
#9355 closed Bug (fixed)
Menu panel never shrinks
| Reported by: | Olek Nowodziński | Owned by: | Olek Nowodziński |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.0 |
| Component: | UI : Floating Panel | Version: | 4.0 |
| Keywords: | Cc: |
Description
Use the following HTML:
<textarea cols="80" id="editor1" name="editor1" rows="10"> <table> <tr> <td>cell</td> </tr> </table> This is some text. </textarea>
To create an editor with extended context menu label:
CKEDITOR.replace( 'editor1' );
CKEDITOR.on( 'instanceLoaded', function( evt ) {
evt.editor._.menuItems.tablecell.label = CKEDITOR.tools.repeat( evt.editor.lang.table.cell.menu, 10 );
});
- Right-click on the text. A narrow context menu is shown.
- Right-click the table. A very wide context menu is shown.
- Again, right-click on the text. The menu is still wide. It's nothing like this from 1.
Attachments (1)
Change History (4)
Changed 13 years ago by
| Attachment: | contextMenuNoShrink.png added |
|---|
comment:1 Changed 13 years ago by
| Owner: | set to Olek Nowodziński |
|---|---|
| Status: | new → review |
comment:2 Changed 13 years ago by
| Status: | review → review_passed |
|---|
Nice catch, it even not a v3 regression.
comment:3 Changed 13 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | review_passed → closed |
Small glitches:
target.setStyle( 'width', null ) -> target.removeStyle( 'width' )
Besides ticket number should present in comment line.
Fixed on master with:
https://github.com/ckeditor/ckeditor-dev/commit/4e28f675834a3da148fa7d47cc166e33578a5cc0


Created branch t/9355 with a solution.