Update of /cvsroot/libufo/ufo-0.5/src/layouts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30761/src/layouts
Modified Files:
uboxlayout.cpp
Log Message:
Fixed getPreferredSize for implicitely hidden widgets.
Index: uboxlayout.cpp
===================================================================
RCS file: /cvsroot/libufo/ufo-0.5/src/layouts/uboxlayout.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** uboxlayout.cpp 30 Sep 2005 12:37:20 -0000 1.14
--- uboxlayout.cpp 24 Oct 2005 15:55:17 -0000 1.15
***************
*** 76,80 ****
UWidget * w = container->getWidget(i);
! if (w->isVisible()) {
// FIXME: Resize maxSize to respect already "consumed" space
const UDimension & size = w->getPreferredSize(maxSize);
--- 76,80 ----
UWidget * w = container->getWidget(i);
! if (w->isVisible() || !w->testState(WidgetForceInvisible)) {
// FIXME: Resize maxSize to respect already "consumed" space
const UDimension & size = w->getPreferredSize(maxSize);
|