X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ftableresize%2Fplugin.js;h=891a7d97e5b4cf4602dc4724d2eaa27b960057ea;hp=0ba8aad147185977ae374500503d3b4474d85e75;hb=refs%2Ftags%2Fv3.6.1;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/plugins/tableresize/plugin.js b/_source/plugins/tableresize/plugin.js index 0ba8aad..891a7d9 100644 --- a/_source/plugins/tableresize/plugin.js +++ b/_source/plugins/tableresize/plugin.js @@ -82,7 +82,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license pillarIndex += td.$.colSpan || 1; // Calculate the pillar boundary positions. - var pillarLeft, pillarRight, pillarWidth, pillarPadding; + var pillarLeft, pillarRight, pillarWidth; var x = td.getDocumentPosition().x; @@ -112,9 +112,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license pillarWidth = Math.max( pillarRight - pillarLeft, 3 ); - // Make the pillar touch area at least 14 pixels wide, for easy to use. - pillarPadding = Math.max( Math.round( 7 - ( pillarWidth / 2 ) ), 0 ); - // The pillar should reflects exactly the shape of the hovered // column border line. pillars.push( { @@ -123,8 +120,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license x : pillarLeft, y : tbodyPosition.y, width : pillarWidth, - height: tbody.$.offsetHeight, - padding : pillarPadding, + height : tbody.$.offsetHeight, rtl : rtl } ); } @@ -135,10 +131,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { for ( var i = 0, len = pillars.length ; i < len ; i++ ) { - var pillar = pillars[ i ], - pad = pillar.padding; + var pillar = pillars[ i ]; - if ( positionX >= pillar.x - pad && positionX <= ( pillar.x + pillar.width + pad ) ) + if ( positionX >= pillar.x && positionX <= ( pillar.x + pillar.width ) ) return pillar; } @@ -349,9 +344,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( !pillar ) return 0; - var pad = pillar.padding; - - if ( !isResizing && ( posX < pillar.x - pad || posX > ( pillar.x + pillar.width + pad ) ) ) + if ( !isResizing && ( posX < pillar.x || posX > ( pillar.x + pillar.width ) ) ) { detach(); return 0;