X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftableresize%2Fplugin.js;h=d7d52ea2d1148a41b02e909cce933bb9f89ab799;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=891a7d97e5b4cf4602dc4724d2eaa27b960057ea;hpb=f0610347140239143439a511ee2bd48cb784f470;p=ckeditor.git diff --git a/_source/plugins/tableresize/plugin.js b/_source/plugins/tableresize/plugin.js index 891a7d9..d7d52ea 100644 --- a/_source/plugins/tableresize/plugin.js +++ b/_source/plugins/tableresize/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -287,7 +287,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function onMouseMove( evt ) { - move( evt.data.$.clientX ); + move( evt.data.getPageOffset().x ); } document = editor.document; @@ -403,9 +403,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { evt = evt.data; + var pageX = evt.getPageOffset().x; + // If we're already attached to a pillar, simply move the // resizer. - if ( resizer && resizer.move( evt.$.clientX ) ) + if ( resizer && resizer.move( pageX ) ) { cancel( evt ); return; @@ -429,7 +431,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license table.on( 'mousedown', clearPillarsCache ); } - var pillar = getPillarAtPosition( pillars, evt.$.clientX ); + var pillar = getPillarAtPosition( pillars, pageX ); if ( pillar ) { !resizer && ( resizer = new columnResizer( editor ) );