Skip to content

Commit

Permalink
vaev-layout: Added margin box accessor.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Jul 30, 2024
1 parent d1f881a commit ddfb0b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/web/vaev-layout/box.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ struct Box {
RectPx contentBox() const {
return paddings.shrink(Math::Flow::LEFT_TO_RIGHT, paddingBox());
}

RectPx marginBox() const {
return margins.grow(Math::Flow::LEFT_TO_RIGHT, borderBox);
}
};

} // namespace Vaev::Layout

0 comments on commit ddfb0b1

Please sign in to comment.