Skip to content

Commit

Permalink
bug fix: save original length as-is not parsed to int (need to keep u…
Browse files Browse the repository at this point in the history
…nits in SizeHelper)
  • Loading branch information
dound committed Dec 7, 2008
1 parent f0d7024 commit ed620e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jtoolbar.js
Expand Up @@ -392,16 +392,14 @@ var JTB = function() {

/* set the natural size override based on the style values */
if(e.style.width !== '') {
var w = parseInt(e.style.width, 10);
this.float_width = this.vert_orient_width = w;
this.float_width = this.vert_orient_width = e.style.width;
}
else if(tb === null) {
this.float_width = this.e.offsetWidth;
}

if(e.style.height !== '') {
var h = parseInt(e.style.height, 10);
this.float_height = this.horiz_orient_height = h;
this.float_height = this.horiz_orient_height = e.style.height;
}
else if(tb === null) {
this.float_height = this.e.offsetHeight;
Expand Down

0 comments on commit ed620e9

Please sign in to comment.