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