From 59bd395568aef1d7ec0d68c1d029611cb88b1217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vlc=CC=8Cek?= Date: Sat, 15 Mar 2014 23:59:57 +0100 Subject: [PATCH 1/3] Changed minimum width from 0px to 1px. --- plugins/tableresize/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tableresize/plugin.js b/plugins/tableresize/plugin.js index 877d31846c3..49c1ca00667 100644 --- a/plugins/tableresize/plugin.js +++ b/plugins/tableresize/plugin.js @@ -219,8 +219,8 @@ // 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 ) ) ); + 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 ) From c2f95c6344450c2181fac198f374d508ca47a4a7 Mon Sep 17 00:00:00 2001 From: Piotr Jasiun Date: Tue, 22 Apr 2014 17:20:29 +0200 Subject: [PATCH 2/3] Added comment. --- plugins/tableresize/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tableresize/plugin.js b/plugins/tableresize/plugin.js index 49c1ca00667..35fc1ed279f 100644 --- a/plugins/tableresize/plugin.js +++ b/plugins/tableresize/plugin.js @@ -219,6 +219,7 @@ // Defer the resizing to avoid any interference among cells. CKEDITOR.tools.setTimeout( function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift ) { + // 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 ) ) ); From f1ae2fa30db16691ff97fd5d19598d5177574381 Mon Sep 17 00:00:00 2001 From: Piotr Jasiun Date: Tue, 29 Apr 2014 14:25:31 +0200 Subject: [PATCH 3/3] Changelog entry. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index bee739b6c62..ec4e68c5ba2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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: