diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-31 14:42:28 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-31 14:42:28 +0100 |
commit | eac1c960c8c875715fdb8d123e4c19302d93eb00 (patch) | |
tree | 5160a48e11c0047f31a9898de6144dea894358db /dw/oofposrelmgr.cc | |
parent | e1eaf4d64bcafcd5b2f50153dd7db0106223012c (diff) |
Relative positions, part 5: more bug fixes.
Diffstat (limited to 'dw/oofposrelmgr.cc')
-rw-r--r-- | dw/oofposrelmgr.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/oofposrelmgr.cc b/dw/oofposrelmgr.cc index 90cc47ae..8820f8b5 100644 --- a/dw/oofposrelmgr.cc +++ b/dw/oofposrelmgr.cc @@ -79,11 +79,11 @@ void OOFPosRelMgr::sizeAllocateEnd (OOFAwareWidget *caller) Requisition childReq; child->widget->sizeRequest (&childReq); - Allocation childAlloc; - childAlloc.x = containerAllocation.x + - container->getStyle()->boxOffsetX () + child->x; - childAlloc.y = containerAllocation.y + - container->getStyle()->boxOffsetY () + child->y; + Allocation *genAlloc = child->generator == container ? + &containerAllocation : child->generator->getAllocation (), + childAlloc; + childAlloc.x = genAlloc->x + child->x; + childAlloc.y = genAlloc->y + child->y; childAlloc.width = childReq.width; childAlloc.ascent = childReq.ascent; childAlloc.descent = childReq.descent; |