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 works fine, but not when the window is first
> opened.
>

Correct. The DOM hasn't been populated yet, so the center can't yet be
determined.  The answer is to do the centering after the center can be
determined.  You can use the "resize" event for that, or "appear".  With the
latter, you'd see the window appear in the incorrect place and then move to
the center, so you probably want the former.

All you need to do is replace this line:

  this.center()

with this:

  this.addListener("resize", function(e) { this.center(); }, this);


> As a side note Im also trying to darken the background behind the modal
> window. Im trying to do that using blockerOpacity and blockerColor. I have
> no idea if that is correct, but its not working anyway. I also tried setting
> the Opacity of root to 0.5 which did fade everything, including my window
> which I couldn't override.
>

That's been discussed recently and I believe a bug was posted about it.  If
you search the archives (nabble), you  should find the thread from within
the past two weeks, I think.

Cheers,

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to