Skip to content

Commit

Permalink
Use clientWidth/Height instead of outerWidth/Height. Fixes #284
Browse files Browse the repository at this point in the history
  • Loading branch information
valchev committed Sep 4, 2014
1 parent 05cc64c commit 172a8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kendo.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ var __meta__ = {
pageX = e.pageX,
pageY = e.pageY;

offset.right = offset.left + element.outerWidth();
offset.bottom = offset.top + element.outerHeight();
offset.right = offset.left + element[0].clientWidth;
offset.bottom = offset.top + element[0].clientHeight;

if (pageX > offset.left && pageX < offset.right && pageY > offset.top && pageY < offset.bottom) {
return;
Expand Down

0 comments on commit 172a8aa

Please sign in to comment.