Skip to content
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(layout): ensure left <= right #410

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Conversation

joshka
Copy link
Member

@joshka joshka commented Aug 17, 2023

The recent refactor (#405) missed the positive width constraint:
https://github.com/ratatui-org/ratatui/blob/ea48af1c9abac7012e3bf79e78c6179f889a6321/src/layout.rs#L380-L381

Addresses the bug noticed in #404 (comment)

ping @hasezoey - I took a quick look and this may change a few tests on #404. It might not yet be perfect and it may change again if #408 is merged on top of this.

The recent refactor missed the positive width constraint
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #410 (09890b0) into main (c86924b) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #410      +/-   ##
==========================================
+ Coverage   86.10%   86.14%   +0.04%     
==========================================
  Files          40       40              
  Lines        9227     9256      +29     
==========================================
+ Hits         7945     7974      +29     
  Misses       1282     1282              
Files Changed Coverage Δ
src/layout.rs 96.22% <100.00%> (+0.15%) ⬆️

@hasezoey
Copy link
Contributor

can confirm that this change gives the behavior of before #405 in #404 again (behavior mentioned in #404 (comment))

@joshka joshka added this pull request to the merge queue Aug 17, 2023
Merged via the queue into ratatui:main with commit f4ed3b7 Aug 17, 2023
@joshka joshka deleted the layout-positive branch August 17, 2023 22:28
@joshka joshka added this to the v0.23.0 milestone Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants