aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dw_simple_container.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dw_simple_container.cc b/test/dw_simple_container.cc
index 7fa9bf75..ed7849dc 100644
--- a/test/dw_simple_container.cc
+++ b/test/dw_simple_container.cc
@@ -182,8 +182,9 @@ void SimpleContainer::getExtremesImpl (Extremes *extremes)
if (child)
child->getExtremes (&childExtr);
else
- childExtr.minWidth = childExtr.maxWidth = 0;
-
+ childExtr.minWidth = childExtr.minWidthIntrinsic = childExtr.maxWidth =
+ childExtr.maxWidthIntrinsic = extremes->adjustmentWidth = 0;
+
extremes->minWidth = childExtr.minWidth + boxDiffWidth ();
extremes->minWidthIntrinsic = childExtr.minWidthIntrinsic + boxDiffWidth ();
extremes->maxWidth = childExtr.maxWidth + boxDiffWidth ();
@@ -193,7 +194,6 @@ void SimpleContainer::getExtremesImpl (Extremes *extremes)
correctExtremes (extremes, true);
}
-
void SimpleContainer::sizeAllocateImpl (Allocation *allocation)
{
Allocation childAlloc;