lipgloss icon indicating copy to clipboard operation
lipgloss copied to clipboard

add tests for `GetHorizontalFrameSize`

Open bashbunni opened this issue 1 year ago • 1 comments
trafficstars

I don't think GetHorizontalFrameSize is working properly. I just ran an example that had a border and padding, but it only returned the amount of padding and didn't include the border

This is the program I ran https://github.com/charmbracelet/bubbletea/blob/master/examples/glamour/main.go

When I set glamour's word wrapping to vp.Width-4 it works fine, but if I use vp.Style.GetHorizontalFrameSize() it only returns 2, so breaks the table.

bashbunni avatar Aug 22 '24 17:08 bashbunni

related: https://github.com/charmbracelet/lipgloss/issues/112

bashbunni avatar Sep 13 '24 04:09 bashbunni