First off, you keep insisting on using pack() when clearly no one else is
using it and to your own admission it doesn't work. So ditch pack() and come
up with another way to do the same thing. With qooxdoo there is always more
then one way to get something done. I suggest that you put a layout control
on the window (like you did) and place all your other controls into
it.Donot set the Right or Bottom properties of the layout control.
Once you have
all the controls placed on it, set the width and height of the window to be
the layouts neededWidth and neededHeight. I use this a lot and it works
fine.
Jim
On 10/18/07, Dan <[EMAIL PROTECTED]> wrote:
>
> Can anyone explain me what I don't get about qooxdoo's layouts?
>
> On 10/17/07, Dan <[EMAIL PROTECTED] > wrote:
> >
> >
> >
> > On 10/17/07, dperez <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > You're missing a vLayout.auto() call.
> > >
> > > with(vLayout)
> > > {
> > > auto();
> > > setSpacing(4);
> > >
> > >
> > > Daniel Gagnon wrote:
> > >
> >
> > Added but I still have a one pixel window:
> >
> > qx.Class.define("custom.ui.Login",
> > {
> > extend : qx.ui.window.Window,
> >
> > construct: function()
> > {
> > this.base(arguments, this.tr("Login"));
> >
> > var vLayout = new qx.ui.layout.VerticalBoxLayout;
> >
> > with(vLayout)
> > {
> > auto();
> > setTop(5);
> > setLeft(5);
> > setBottom(5);
> > setRight(5);
> > setSpacing(4);
> > setPadding(2);
> > }
> >
> > // Bogus item to test
> > var label = new qx.ui.basic.Label("Foo");
> > vLayout.add(label);
> >
> > with(this)
> > {
> > setShowClose(false);
> > setShowMinimize(false);
> > setShowMaximize(false);
> > setResizable(false);
> > add(vLayout);
> > pack();
> > addToDocument();
> > centerToBrowser();
> > show();
> > }
> > }
> > });
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel