Today Tobias Oetiker wrote:
> Fritz and I have been battling with the qx toolbar overflow
> handling a bit ...
>
> Task: Draw a toolbar at the top edge of a Qooxdoo root window,
> which goes into overflow mode right from the start.
>
> Challenge: Overflow mode only kicks in on a resize event ... So the
> toolbar will be non-overflowing at the start and only once the
> window is resized does it draw ...
>
> Solution: Create TWO (!) artificial resize events ...
>
> http://tinyurl.com/6y6yddz
>
> I am proud to have solved this, but then again, maybe the toolbar
> could do this itself ... somehow ... :-)
>
there is an even more generic handler ...
// naive me would expect this not to be neccessary
tbBtn.addListenerOnce('appear',function(){
var pane = this.getLayoutParent();
this.fireDataEvent('resize', pane.getBounds());
},toolbar);
// nor this
toolbar.getOverflowIndicator().addListener('appear',function(){
var pane = this.getLayoutParent();
this.fireDataEvent('resize', pane.getBounds());
},toolbar);
cheers
tobi
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel