Jared Broad schrieb:
> Hello,
>
> I am just writing to inform of a potential bug in centerToBrowser which
> distorts internal windows.
>
> This code works: (centers to browser, looks good)
> //Set dimensions
> alertWindow.set( {height: 160, width: 450} );
> alertWindow.addEventListener("appear", function(e) {
> alertWindow.centerToBrowser();
> });
> alertWindow.open();
> alertWindow.addToDocument();
>
>
> This code doesn't work: (Centers to browser, but looks weird/distorted)
> //Set dimensions
> alertWindow.set( {height: 160, width: 450} );
> //alertWindow.addEventListener("appear", function(e) {
> // alertWindow.centerToBrowser();
> //});
> alertWindow.open();
> alertWindow.addToDocument();
> alertWindow.centerToBrowser();
>
>
> Same behaviour in both IE 6.02, FF 2.06,
>
> Perhaps someone could confirm this (/or if I am doing something silly), and
> then we could add it to the bug tracker,
>
This behaviour is known and there is no other way to do it because the
centering can only take place after the window is rendered and the
layouting is done. This is usually the case in the "appear" event. I
would regard this as a documentation bug, since this is not documented
in the API docs. I will fix the API docs.
Best Fabian
> Regards,
>
> Jared
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.0/929 - Release Date: 31/07/2007
> 5:26 p.m.
>
>
>
> -------------------------------------------------------------------------
> 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
>
>
>
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger,
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
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