From 5128b5eb18fdd5960e2bec94bbc3eda1d73001ac Mon Sep 17 00:00:00 2001 From: David Underhill Date: Sat, 6 Dec 2008 13:18:58 -0800 Subject: [PATCH] ui fix: only the root toolbar should manage the content size/pos --- jtoolbar.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jtoolbar.js b/jtoolbar.js index 0776b20..17a6ea7 100644 --- a/jtoolbar.js +++ b/jtoolbar.js @@ -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);