diff options
author | Sebastian Geerken <devnull@localhost> | 2013-08-28 21:39:46 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-08-28 21:39:46 +0200 |
commit | c6e1b283bccbedaa7d3892e96941ce78cefbb155 (patch) | |
tree | f099228aa817975175f8baed55488e4f26a97bd3 /dw/outofflowmgr.cc | |
parent | b54969266580140f55b02351c2ddc8e61d1e1e62 (diff) |
... and also right floats. (That was simple!)
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r-- | dw/outofflowmgr.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index 52745fb8..83ae889b 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -1263,9 +1263,10 @@ int OutOfFlowMgr::getMinBorderDiff (Float *vloat, Side side) return gba->x - cba->x + vloat->generatingBlock->getStyle()->boxOffsetX(); else - // For margin/border/padding see comment above. - //return cba->width - gba->width - (gba->x - cba->x); - return 0; // TODO + // For margin/border/padding see comment above. Also, + // in the worst case, the float can take the whole CB + // (not GB!) width. Therefore: + return 0; } else // Generating block not yet allocation; the next // allocation will, when necessary, trigger |