See also my previous posting (reply):

qx.ui.window.Window() does automatically add a newly created Window to the
document root:

            // Automatically add to application root.
            qx.core.Init.getApplication().getRoot().add(this);

Thus a call like

        doc.add(window)

is unnecessary overhead and only useful if specific coordinates are passed
as e.g. in

        doc.add(window, {left: 20, top: 20})

It might be useful to document that in the constructor API.

Cheers,
Fritz

On Mon, 19 Oct 2009, Petr Kobalí?ek wrote:

var doc = this.getRoot();
var dialog = new qx.ui.window.Window();
doc.add(dialog);
dialog.setModal(true);
dialog.center();
dialog.show();

--
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to