If anyone else has this issues I've foudn the solution to the first item. the problem was that a VBox set to height="100%" would stretch it's container which would force scroll bars to pup up in unexpected places.
The way to get round this is to put the VBox inside a canvas. If you set both to height="100%" the canvas behaves and does not stretch it's parent, the VBox then fits within the canvas and the canvas scrolls the VBox Hopefully someone will find that useful. On Dec 17, 2007 10:47 AM, Giles Roadnight <[EMAIL PROTECTED]> wrote: > Hi All > > I have a couple of niggling lay out issues that I can't seem to > resolve and was hoping that someone could help me with them. > > I have a popup with an HBox in. on the left I have VBOx (lets call it > the controls Vbox) and on the right a text area. Both have height="100%". > > With in the controls Vbox I have several text boxes, buttons ect and I > have another VBox (lets call it dynamic text box). This also has heing > set to 100%. > > This dynamic box gets controls dynamically added to it - no way of > knowing how many. These controls always make the controls VBox taller > than the popup and the popup then produces scrollbars so that I can't > see the buttons at the bottom of the controls VBox or the bottom of > the text area. > What I want to happen is for scroll bars to appear on the dynamic text > box. I can only get this to happen if I set the height to for example > 100 but then it does not stretch to make use of the whole height of > the controls VBox. > > How do I get round this? > > The other problem is a bit easier to explain. I have a toggle button > bar across the top of my app with width="100%". With all the buttons > in there the width is probably about 1500 pixels. On my 1200 * 1600 > screen this works fine - it fills the whole width. If I then restore > my browser and re-size the window for example 800 pixels the bar > re-sizes and button labels are cut off with ... at the end and > tooltips. All this is as expected. > If a user on a 800*600 screen opens this app though the button bar is > still around 1500 pixels and stretches the whole app well beyond the > bounds of the screen. This seems like a bug to me > > Any suggestions? > > Many Thanks > > > -- Giles Roadnight http://giles.roadnight.name