Did you try

        this.addListener("resize", this.center, this);

or perhaps

        this.addListener("appear", this.center, this);

in the constructor?

I am not sure how/if it will work in a form higher than the screen, but give
it a try ...

Cheers,
Fritz

On Wed, 7 Oct 2009, John Spackman wrote:

> Hi,
>
>
>
> I have a very long form that needs to popup various modal dialogs that are
> classes derived from Window - the form is so long that it is easy for the
> dialog to appear off screen and so there is an event handler for each window
> that hooks onto "appear" with this code to scroll the window into view:
>
>
>
>            this.addListener("appear", function() {
>
>
> qx.bom.element.Scroll.intoView(this.getContentElement().getDomElement());
>
>            }, this);
>
>
>
> The only thing is, the scrolling only happens the first time the dialog
> appears; if I close it, scroll down, and make it reappear it appears off
> screen.  I've stepped through the code and there are no errors etc but I
> can't see what might be wrong.
>
>
>
> Any ideas what I can do to fix it?  I'm using 0.8.2 and FF3.5.
>
>
>
> Thanks
>
> John
>
>

-- 
Oetiker+Partner AG              tel: +41 62 775 99 03 (direct)
Fritz Zaucker                        +41 62 775 99 00 (switch board)
Aarweg 15                            +41 79 675 06 30 (mobile)
CH-4600 Olten                   fax: +41 62 775 99 05
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to