From a629fd2ab903c694d1ff3f67a9788c5f85979284 Mon Sep 17 00:00:00 2001 From: Joey Sabey Date: Fri, 21 Jun 2024 11:02:34 +0100 Subject: [PATCH] fix(#11): use lipgloss Style GetHorizontalFrameSize() & GetVertialFrameSize() methods to include padding for extra cell height/width --- flexbox/cell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flexbox/cell.go b/flexbox/cell.go index 65d9062..d0fb7eb 100644 --- a/flexbox/cell.go +++ b/flexbox/cell.go @@ -125,11 +125,11 @@ func (r *Cell) getMaxHeight() int { } func (r *Cell) getExtraWidth() int { - return r.style.GetHorizontalMargins() + r.style.GetHorizontalBorderSize() + return r.style.GetHorizontalFrameSize() } func (r *Cell) getExtraHeight() int { - return r.style.GetVerticalMargins() + r.style.GetVerticalBorderSize() + return r.style.GetVerticalFrameSize() } func (r *Cell) copy() Cell {