Skip to content
Permalink
Browse files

Merge branch 't/11626'

  • Loading branch information...
pjasiun committed Apr 29, 2014
2 parents 081cf71 + f1ae2fa commit 41e48b308e36af091d6dad082b2cc5f2bc6983d3
Showing with 4 additions and 2 deletions.
  1. +1 −0 CHANGES.md
  2. +3 −2 plugins/tableresize/plugin.js
@@ -9,6 +9,7 @@ Fixed Issues:
* [#11754](http://dev.ckeditor.com/ticket/11754): Fixed: Infinite loop in Google Chrome when contents contains not closed attributes.
* [#11848](http://dev.ckeditor.com/ticket/11848): Fixed: [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) throwing an exception in IE, when there was no selection in editor.
* [#11801](http://dev.ckeditor.com/ticket/11801): Fixed: Editor anchors unavailable when linking [Enhanced Image](http://ckeditor.com/addon/image2) widget.
* [#11626](http://dev.ckeditor.com/ticket/11626): Fixed: [Table Resize](http://ckeditor.com/addon/tableresize) sets invalid width.

Other changes:

@@ -219,8 +219,9 @@

// Defer the resizing to avoid any interference among cells.
CKEDITOR.tools.setTimeout( function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift ) {
leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
// 1px is the minimum valid width (#11626).
leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 1 ) ) );
rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 1 ) ) );

// If we're in the last cell, we need to resize the table as well
if ( tableWidth )

0 comments on commit 41e48b3

Please sign in to comment.
You can’t perform that action at this time.