Skip to content

Commit

Permalink
11626
Browse files Browse the repository at this point in the history
  • Loading branch information
mychalvlcek committed Mar 15, 2014
1 parent 4be02f3 commit c852eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tableresize/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit c852eeb

Please sign in to comment.