diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-08 14:52:57 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-08 14:52:57 +0100 |
commit | 6611c982435d17005c16a0f5fcc19ad929de36e2 (patch) | |
tree | d2892443fef182b79b3babf5c7542d7af7fc64d3 /test | |
parent | 428094b178eb03d8e500c81837caac402e4b138c (diff) |
Fixed test.
Diffstat (limited to 'test')
-rw-r--r-- | test/dw_simple_container.cc | 6 |
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; |