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