Ticket #11626: 11626.patch

File 11626.patch, 883 bytes (added by Michal Vlcek, 10 years ago)

Patch to plugins.tableresize.plugin.js

  • plugins/tableresize/plugin.js

    diff --git a/plugins/tableresize/plugin.js b/plugins/tableresize/plugin.js
    index 877d318..49c1ca0 100644
    a b  
    219219
    220220                                // Defer the resizing to avoid any interference among cells.
    221221                                CKEDITOR.tools.setTimeout( function( leftCell, leftOldWidth, rightCell, rightOldWidth, tableWidth, sizeShift ) {
    222                                         leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 0 ) ) );
    223                                         rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 0 ) ) );
     222                                        leftCell && leftCell.setStyle( 'width', pxUnit( Math.max( leftOldWidth + sizeShift, 1 ) ) );
     223                                        rightCell && rightCell.setStyle( 'width', pxUnit( Math.max( rightOldWidth - sizeShift, 1 ) ) );
    224224
    225225                                        // If we're in the last cell, we need to resize the table as well
    226226                                        if ( tableWidth )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy