Hello Charles, Try to set minWidth and minHeight properties for the window. For example:
this.__logger.set({ width:450, height:200, minWidth: 200, minHeight: 200 }); I hope this will help you. Best regards, Denis Charlie-73 wrote: > > Hi, > I want to make a "logger" window (qx.ui.window.Window) containing a > TabView and in the first page, a VerticalBoxLayout in which I add one > Atom by log. > The problem is that I just can't get the overflow to work : I try to set > the {overflow:"auto"} properties at various places (on the BoxLayout of > course, on the tabview.Page, on the Window.getPane(), etc.) it is never > working. Each time I add a log, the window is growing bigger and bigger, > eventually going out of the screen and there is never scroll. > The only way to get it work is to set manually the height of the > BoxLayout, but in that case if I resize the Window, it does not fit the > new size... Is it normal? Is there a way to get both window resizing and > content overflow? > Here is my code (simplified) : > ---------------------------------- > this.__logger = new qx.ui.window.Window("Logs Monitor", > "icon/16/apps/accessories-dictionary.png"); > this.__logger.set({ > width:450, > height:200 > }); > > var tabLayout = new qx.ui.pageview.tabview.TabView(); > tabLayout.set({ > left:0, > right:0, > bottom:0, > top:0 > }); > this.userButton = new qx.ui.pageview.tabview.Button("User Actions"); > var page1 = new qx.ui.pageview.tabview.Page(this.userButton); > tabLayout.getBar().add(this.userButton); > tabLayout.getPane().add(page1); > this.__logger.getPane().add(tabLayout); > > this.__container = new qx.ui.layout.VerticalBoxLayout(); > this.__container.set({ > height:'100%', > overflow : 'scrollY' > }); > page1.add(this.__container); > > // > // When adding a log > // > this.__container.add(new qx.ui.basic.Atom(myLogString)); > --------------------------------- > > Thanks for your help > Charles > > -- View this message in context: http://www.nabble.com/Overflow-inside-a-qx.ui.window.Window-tp16545216p16547987.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel