Hey Adrian,

2009/4/28 Adrian Sutherland <adr...@sutherlandonline.org>:
> I think there is an issue with this Widget. On IE6 (and IE7) it is
> fine, but on Firefox on Linux the size of a child widget does not seem
> to be handled right. For example the scrollbar is not shown and
> instead the text in a child WText overlays the next widget. And in
> another case the WtreeView is shrunk-up. (The code is a bit complex to
> post).

You are right that WStackedWidget does not actively manage the size of
its children -- it simply shows() one of multiple child widgets, and
uses HTML/CSS default layouting rules (which indeed are not entirely
consistent among browsers, especially w.r.t. vertical sizes).

What kind of behavior are you looking for (what is your use-case) ?

Do you want:
 - the stacked widget to always be the same size and provide
scrollbars for children when needed ?
   -> set the size for the stacked widget using resize() and provide
scroll bars for it using setOverflow().

 - the stacked widget to resize, following the size of the child ?
   -> this should be the default behavior.

 - to put the stacked widget within a layout manager and the child
should follow the size of the stacked widget ?
   -> we realize now that this is not yet possible with the current
implementation of WStackedWidget... Perhaps this is what you are
looking for?

> Anyway any hints welcome - I feel a bit depressed at the thought of
> having to manually implement some kind of menu (removing (or hiding)
> child widgets in some kind of home grown way, but I guess I will have
> to try this :-(

I hope not. In any case, it looks like a very useful feature to make
the stacked widget play better together with the layout managers to
implement the 3rd scenario.

Regards,
koen

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to