Derrell Lipman schrieb:
> On Thu, Oct 16, 2008 at 11:44 AM, Glyn Bowden <[EMAIL PROTECTED] 
> <mailto:[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.
Right, there is an open bug for this issue 
<http://bugzilla.qooxdoo.org/show_bug.cgi?id=1465>. We hope to get this 
fixed in 0.8.1


Best Fabian





-- 
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, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


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