Skip to content

Commit

Permalink
Adjust line positioning with block during reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweeney committed Apr 4, 2024
1 parent 5369d6c commit fd306ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/FrameReflower/Block.php
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit fd306ae

Please sign in to comment.