Skip to content

Commit

Permalink
ensure SizeHelper which isn't attached to a tb (e.g. a container) hav…
Browse files Browse the repository at this point in the history
…e a reasonable float_width/height set

 - if style isn't present, then just use the curent size
  • Loading branch information
dound committed Dec 7, 2008
1 parent 287934d commit 6a373b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jtoolbar.js
Expand Up @@ -388,10 +388,17 @@ var JTB = function() {
var w = parseInt(e.style.width, 10);
this.float_width = this.vert_orient_width = w;
}
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;
}
else if(tb === null) {
this.float_height = this.e.offsetHeight;
}
},

/**
Expand Down

0 comments on commit 6a373b9

Please sign in to comment.