diff --git a/src/FrameReflower/Block.php b/src/FrameReflower/Block.php index 51396209b..1a2017f94 100644 --- a/src/FrameReflower/Block.php +++ b/src/FrameReflower/Block.php @@ -937,9 +937,19 @@ function reflow(BlockFrameDecorator $block = null) if ($this->_frame->is_absolute()) { if ($auto_top) { $this->_frame->move(0, $top); + + // set line positions + foreach ($this->_frame->get_line_boxes() as $line_box) { + $line_box->y += $top; + } } if ($auto_margin_top) { $this->_frame->move(0, $margin_top, true); + + // set line positions + foreach ($this->_frame->get_line_boxes() as $line_box) { + $line_box->y += $margin_top; + } } }