Skip to content

Commit

Permalink
BoxArea cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chearon committed Dec 29, 2023
1 parent ddd3d69 commit fe590c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,11 @@ export class BoxArea {
y = this.lineLeft;
width = this.blockSize;
height = this.inlineSize;
} else if (this.parent.writingMode === 'horizontal-tb') {
} else { // 'horizontal-tb'
x = this.lineLeft;
y = this.blockStart;
width = this.inlineSize;
height = this.blockSize;
} else {
return;
}

this.lineLeft = this.parent.x + x;
Expand Down

0 comments on commit fe590c3

Please sign in to comment.