Skip to content

Commit

Permalink
use real size vice anim size for determining mouse over
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed Dec 8, 2008
1 parent 7c9bd8c commit b1e0bc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jtoolbar.js
Expand Up @@ -2139,7 +2139,9 @@ var JTB = function() {
}
else {
var e = this.e_tb;
var dist = distanceSqToRectangle(x, y, e.offsetLeft, e.offsetTop, e.offsetWidth, e.offsetHeight);
var w = ((e.offsetWidth > this.sz_tb.getPreferredWidth()) ? e.offsetWidth : this.sz_tb.getPreferredWidth());
var h = ((e.offsetHeight > this.sz_tb.getPreferredHeight()) ? e.offsetHeight : this.sz_tb.getPreferredHeight());
var dist = distanceSqToRectangle(x, y, e.offsetLeft, e.offsetTop, w, h);
return (dist == 0);
}
};
Expand Down

0 comments on commit b1e0bc9

Please sign in to comment.