diff --git a/src/layout/overlay_block.ts b/src/layout/overlay_block.ts index 1b099aa..546e9c1 100644 --- a/src/layout/overlay_block.ts +++ b/src/layout/overlay_block.ts @@ -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);