Skip to content

Commit

Permalink
fix: CSS direction property ignored on margin boxes
Browse files Browse the repository at this point in the history
- fix #1393
  • Loading branch information
MurakamiShinyu committed Oct 17, 2024
1 parent c5f8eb9 commit 61719eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/src/vivliostyle/page-master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,13 @@ export class PageBoxInstance<P extends PageBox = PageBox<any>> {
this.vertical ? "vertical-rl" : "horizontal-tb",
);
}
if (!this.parentInstance || this.rtl != this.parentInstance.rtl) {
Base.setCSSProperty(
container.element,
"direction",
this.rtl ? "rtl" : "ltr",
);
}
if (this.vertical ? this.isAutoWidth : this.isAutoHeight) {
if (this.vertical) {
this.sizeWithMaxWidth(context, container);
Expand Down

0 comments on commit 61719eb

Please sign in to comment.