Skip to content

Commit

Permalink
ui fix: only the root toolbar should manage the content size/pos
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed Dec 6, 2008
1 parent 23f384f commit 5128b5e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions jtoolbar.js
Expand Up @@ -995,10 +995,13 @@ var JTB = function() {
var px = container.offsetLeft;
var py = container.offsetTop;

content.style.left = (px + cx) + 'px';
content.style.top = (py + cy) + 'px';
content.style.width = cw + 'px';
content.style.height = ch + 'px';
/* the root toolbar handles the content style */
if(!this.isChildToolbar()) {
content.style.left = (px + cx) + 'px';
content.style.top = (py + cy) + 'px';
content.style.width = cw + 'px';
content.style.height = ch + 'px';
}

if(this.isFloating() && this.isClampFloatingToolbarSize()) {
var cwf = cw + getExtraWidth(content);
Expand Down

0 comments on commit 5128b5e

Please sign in to comment.