I'm having the same problem. I think the problem is the call to
centerToBrowser() before show(). In my code I use:
window.open();
qx.ui.core.Widget.flushGlobalQueues();
window.centerToBrowser();
However, this has the problem of seeing a quick jump of the window from
the top left position to the center...
________________________________
From: Dan [mailto:[EMAIL PROTECTED]
Sent: dinsdag 16 oktober 2007 8:53
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] How to pack() a window?
On 10/16/07, dperez <[EMAIL PROTECTED]> wrote:
You can try setting the minWidth and minHeight
properties of the window
itself of any contained widget.
Can you post an example?
How can I set it so it computes itself based on what the widget
need?
Here's my code below, I just added a single Label so far to test
and it collapses to one pixel.
Eventually, it will hold:
Username [ ]
Password [ ]
[] Login as guest
[Register] [Login]
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)
{
setTop(5);
setLeft(5);
setBottom(5);
setSpacing(4);
setPadding(2);
}
// Bogus item to test
var label = new qx.ui.basic.Label("Foo");
vLayout.add(label);
with(this)
{
pack();
setShowClose(false);
setShowMinimize(false);
setShowMaximize(false);
add(vLayout);
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