Skip to content

Commit

Permalink
fix(76creates#11): use lipgloss Style GetHorizontalFrameSize() & GetV…
Browse files Browse the repository at this point in the history
…ertialFrameSize() methods to include padding for extra cell height/width
  • Loading branch information
Omnikron13 committed Jun 21, 2024
1 parent c0cf398 commit a629fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexbox/cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a629fd2

Please sign in to comment.