Skip to content

Commit

Permalink
fix(OverlayBlock): computing fg
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Sep 4, 2024
1 parent 2a38c46 commit 7803477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/overlay_block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class OverlayBlock extends Block {
if (!fg.changed && fg instanceof StyleBlock) {
fg.updateLines();
}
fg.compute(parent);
fg.compute(this);
fg.draw();

this.computedX = normalizeUnit(this.x, bg.computedWidth - fg.computedWidth);
Expand Down

0 comments on commit 7803477

Please sign in to comment.