On Wed, Dec 30, 2009 at 10:33 AM, Koen Deforche <[email protected]> wrote: > Hey, > > 2009/12/30 OvermindDL1 <[email protected]>: >> After testing, that did fix the first sizing problem, but now a second >> has popped up, I did however fix it, but I do not understand *why* >> this fixed it. >> >> The newly created menu that had the memberlist was being set as the >> layout by this: >> setLayout(smc, AlignJustify|AlignTop); >> If I remove the ", AlignJustify|AlignTop" part it then sizes fine, but >> *with* that things are having a height of 100% again, with the >> WTableView getting 136px (no matter the window size). Without it >> everything sizes fine and the proper px size propagates all the way >> down as expected. So does AlignTop force it to not take all available >> space but rather use the minimum space aligned to the top or so? > > Yes. That is in fact the only effect AlignTop has: it doesn't try to > constrain the size of the contained contents to be the size of the > parent.
Ah, that explains it, definitely matches what I see. Perhaps change the documentation for it to state that? When I type AlignTop in my IDE it pops up the related documentation for it, which was: ! \brief Align top of widget with top of tallest sibling widget. Awesome help by the way, thanks much. Glad I can be of help finding the occasional bug. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
