aboutsummaryrefslogtreecommitdiff
path: root/test/dw_simple_container.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-08 14:52:57 +0100
committerSebastian Geerken <devnull@localhost>2015-01-08 14:52:57 +0100
commit6611c982435d17005c16a0f5fcc19ad929de36e2 (patch)
treed2892443fef182b79b3babf5c7542d7af7fc64d3 /test/dw_simple_container.cc
parent428094b178eb03d8e500c81837caac402e4b138c (diff)
Fixed test.
Diffstat (limited to 'test/dw_simple_container.cc')
-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;