Hey Torsten, 2009/3/29 Torsten Schulz <[email protected]>: > Hi, > I thought first, it's my fault, but now I'm not sure. I try to set the > height of the content in WTabWidget. It is no problem to set the height of > the WTabWidget - I showed with background-color. The height is set to 100%. > But if I try to set the child-widget (as exampe WTable) to height 100 %, it > isn't set, it's only the height of the content. I looked in the source of > witty, but I can't find out what I'd forgot to set to the height of 100%.
Unfortunately, the CSS specification only indicates in few cases what the behavior should be of height: xx %... The solution to your problem is to use Wt's layout managers (WVBoxLayout) in the implementation of WTabWidget, and I have pushed this change to git. It seems to work well for me (i.e. when setting the height to 100% of the item added to the tab widget, it does the correct thing in all browsers). Note that the child needs to be a CSS 'block' element, i.e. it needs to be WWidget::setInline(false). Regards, koen ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
