Hello, try : win.addListener("appear", function(){ win.maximize(); });
for right.setWidth(100) you cannot do it since right has a flex of 1 while left has flex of 0. hope this helps ritteh wrote > I'm trying to do two things in a very simple program. > > 1. Initialize window to be 100% width, but allow user to change that. > this.getRoot().add(win, {width:"100%"}); opens it at 100%, but user can't > change it. > > 2. Set the slider or splitter to a particular position in a > ui.splitpan.Slider > Doing left.setWidth(100) seems to work fine, but if I want > right.setWidth(100) and left to by dynamic from that, it doesn't work. > > Thanks for any help. > > Here's the code: > > var win = new qx.ui.window.Window("First Window"); > win.setLayout( new qx.ui.layout.Canvas() ); > > var pane = new qx.ui.splitpane.Pane("horizontal"); > var left = new qx.ui.container.Composite( ); > var right = new qx.ui.container.Composite( ); > left.setBackgroundColor("#88ff88"); > right.setBackgroundColor("#ff8888"); > pane.add( left, 0 ); > pane.add( right, 1 ); > win.add( pane, {width: "100%", height: "100%"} ); > > this.getRoot().add(win); > win.open(); -- View this message in context: http://qooxdoo.678.n2.nabble.com/Unbelievable-newbie-question-window-width-and-pane-splitting-tp7585567p7585568.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel