Hi,

you should always catch the "appear"-event before centerToBrowser().
Same question from me: why doesn't use use the working one?;)

Tobias 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Leander Hanwald
Gesendet: Mittwoch, 1. August 2007 13:26
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] centerToBrowser() Bug?

Hi,

Why doesn't you do this (which works :) )

alertWindow.set( {height: 160, width: 450} );
alertWindow.addToDocument();
alertWindow.centerToBrowser();
alertWindow.open();


You should call the centerToBrowser  before you open the window.

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,
>
> 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
>
>
>   


-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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

Reply via email to