-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: style size to include borders #451
base: master
Are you sure you want to change the base?
Conversation
Height(8). | ||
Width(columnWidth + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to do this anymore because the +1
before was to account for the border on one side
@@ -282,7 +281,7 @@ func main() { | |||
listItem("Pomelo"), | |||
), | |||
), | |||
list.Width(columnWidth).Render( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all columns have the same width now
@meowgorithm Should this change be part of v2 given it may break some layouts? This change causes a lot of existing examples to be off by 1 or two depending on if the border is only on one side or not. Authors are currently working around by having That makes this change breaking despite it being the intended behaviour for edit: Will include this in v2 since it is breaking |
included tests for these changes that fail on
master
but pass on this branch :)