I am not sure about the Dialog contrib. But I usually do something like
that:
/**
* Login Popup that performs authentication.
*/
qx.Class.define("myApp.ui.Login", {
extend : qx.ui.window.Window,
type: 'singleton',
construct : function() {
this.base(arguments, this.tr("BWTool Login"));
....
this.addListener('appear', function() {
this.center();
});
this.open();
...
},
...
With that the window is centered when it appears.
Fritz
On Thu, 3 Feb 2011, bplturner wrote:
>
> I tried adding a setTimeout at the end:
>
> window.setTimeout("loginWidget.show();", 300);
>
> ...but instead of it working, it just never showed it.
>
> Perhaps I am doing this wrong and you can show me what you're referring to?
> Should I put it in the main part where I create the widget?
>
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel