Skip to content

Commit

Permalink
fix(border): both GetHorizontalBorderSize and GetVerticalBorderSize (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo authored Oct 5, 2023
1 parent 2d2a577 commit b0eb95d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions get.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,16 +340,14 @@ func (s Style) GetBorderRightSize() int {
// borders contain runes of varying widths, the widest rune is returned. If no
// border exists on the horizontal edges, 0 is returned.
func (s Style) GetHorizontalBorderSize() int {
b := s.getBorderStyle()
return b.GetLeftSize() + b.GetRightSize()
return s.GetBorderLeftSize() + s.GetBorderRightSize()
}

// GetVerticalBorderSize returns the width of the vertical borders. If
// borders contain runes of varying widths, the widest rune is returned. If no
// border exists on the vertical edges, 0 is returned.
func (s Style) GetVerticalBorderSize() int {
b := s.getBorderStyle()
return b.GetTopSize() + b.GetBottomSize()
return s.GetBorderTopSize() + s.GetBorderBottomSize()
}

// GetInline returns the style's inline setting. If no value is set false is
Expand Down

0 comments on commit b0eb95d

Please sign in to comment.