Permalink
Browse files

using outerWidth/Height to calculate center of element for drag

  • Loading branch information...
1 parent 3ec9fa9 commit 4a6112586c854a4cc0966dddb9fd1a41bdb28c3c @polgfred polgfred committed Jan 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 drag/drag.js
View
4 drag/drag.js
@@ -131,8 +131,8 @@
var j = Syn.jquery()(el),
o = j.offset();
return {
- pageX: o.left + (j.width() / 2),
- pageY: o.top + (j.height() / 2)
+ pageX: o.left + (j.outerWidth() / 2),
+ pageY: o.top + (j.outerHeight() / 2)
}
},
convertOption = function( option, win, from ) {

0 comments on commit 4a61125

Please sign in to comment.