Hi,

sorry but I could not verify your sentence on no 1. As you can see here[1] 
there will be "resize" events fired for all pages.
To use the example please open the log and resize the pane, where the tabview 
is rendered. You will see two debug messages.


[1] http://tinyurl.com/n7o6gvv

Gruß
Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe

-----Ursprüngliche Nachricht-----
Von: JBaron [mailto:pe...@jbaron.com] 
Gesendet: Donnerstag, 24. Juli 2014 21:24
An: qooxdoo Development
Betreff: [qooxdoo-devel] Resize events and TabView

I have a tabview with a number of pages. Each page has a native component that 
needs to resize as soon as the TabView resizes. I would like to implement this 
behaviour without introducing all kind of flags, but what I'm now encountering:

1) When I register for resize events on tab page level, only the active page 
gets that event. None of he other tab pages get one.

2) When I register on TabView level, only the active page has actually the new 
size. The "hidden" pages still have the old size until they appear (but then 
there is no resize event it seems).


So the only solution I could come up with (please ignore some typing mistakes 
and the typescript syntax):


tabView.addListener("resize", () => {
        this.getChildren().forEach((child) => {child.resized = true}));
})


tabPage.addListener("appear", () => {
        if (this.resize) {
                this.resize = false;
                this.nativeComponent.resize();
        }
 } 

But I guess there is an easier way. Anyone has some tips ?


- Peter
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and search 
up to 200,000 lines of code with a free copy of Black Duck Code Sight - the 
same software that powers the world's largest code search on Ohloh, the Black 
Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to