Re: [qooxdoo-devel] First window centering

2008-10-20 Thread Fabian Jakobs
Derrell Lipman schrieb: > On Thu, Oct 16, 2008 at 11:44 AM, Glyn Bowden <[EMAIL PROTECTED] > > wrote: > > Im new to qooxdoo > > > Welcome to qooxdoo! > > > when I call the open the DOM doesn't appear to be ready so the > window appears top left all the time.

Re: [qooxdoo-devel] First window centering

2008-10-16 Thread Glyn Bowden
Thanks both.. Makes sense and fixed the issue. Thanks for the speedy responses too! Glyn On 16 Oct 2008, at 17:12, Derrell Lipman wrote: On Thu, Oct 16, 2008 at 12:05 PM, Derrell Lipman <[EMAIL PROTECTED] > wrote: All you need to do is replace this line: this.center() with this:

Re: [qooxdoo-devel] First window centering

2008-10-16 Thread Derrell Lipman
On Thu, Oct 16, 2008 at 12:05 PM, Derrell Lipman < [EMAIL PROTECTED]> wrote: > All you need to do is replace this line: > > this.center() > > with this: > > this.addListener("resize", function(e) { this.center(); }, this); > or simpler, this.addListener("resize", this.center, this); ---

Re: [qooxdoo-devel] First window centering

2008-10-16 Thread Ian Horst
You can center only rendered windows. Use this to center window in your constructor this.addListener("appear", this.center, this); Ian Horst Glyn Bowden wrote: > Hi, > > Im new to qooxdoo and so have a newbie question. Im writing an > application that needs a login to access. Im doing this v

Re: [qooxdoo-devel] First window centering

2008-10-16 Thread Derrell Lipman
On Thu, Oct 16, 2008 at 11:44 AM, Glyn Bowden <[EMAIL PROTECTED]> wrote: > Im new to qooxdoo > Welcome to qooxdoo! > when I call the open the DOM doesn't appear to be ready so the window > appears top left all the time. If I add an event to a button to call the > center on the window, that wor

[qooxdoo-devel] First window centering

2008-10-16 Thread Glyn Bowden
Hi, Im new to qooxdoo and so have a newbie question. Im writing an application that needs a login to access. Im doing this via a modal window. So far so good. However, its the first modal window to be opened as soon as the application starts. The issue is that when I call the open the DOM doesn¹t