Skip to content

Commit

Permalink
parse SizeHelper fields with lengthToPixels rather than directly usin…
Browse files Browse the repository at this point in the history
…g them
  • Loading branch information
dound committed Dec 7, 2008
1 parent ed620e9 commit 69e41b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jtoolbar.js
Expand Up @@ -1846,8 +1846,8 @@ var JTB = function() {
}
var cw = container.offsetWidth;
var ch = container.offsetHeight;
var tw = this.sz_tb.vert_orient_width;
var th = this.sz_tb.horiz_orient_height;
var tw = lengthToPixels(this.sz_tb.vert_orient_width);
var th = lengthToPixels(this.sz_tb.horiz_orient_height);

/* compute distance to the docking locations */
var dl = distanceSqToRectangle(x, y, 0, 0, tw, ch);
Expand Down

0 comments on commit 69e41b6

Please sign in to comment.