fix(api): include bottom margin when calculating output size
This commit is contained in:
parent
171b9b04f7
commit
da3d95ff49
|
@ -74,7 +74,7 @@ class Size:
|
||||||
def add_border(self, border: Border):
|
def add_border(self, border: Border):
|
||||||
return Size(
|
return Size(
|
||||||
border.left + self.width + border.right,
|
border.left + self.width + border.right,
|
||||||
border.top + self.height + border.right,
|
border.top + self.height + border.bottom,
|
||||||
)
|
)
|
||||||
|
|
||||||
def tojson(self) -> Dict[str, int]:
|
def tojson(self) -> Dict[str, int]:
|
||||||
|
|
Loading…
Reference in New Issue