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 dynamic calculation #92

Merged
merged 13 commits into from Oct 18, 2022
Merged

Fix dynamic calculation #92

merged 13 commits into from Oct 18, 2022

Conversation

Nukesor
Copy link
Owner

@Nukesor Nukesor commented Sep 26, 2022

Fixes #90

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2022

Codecov Report

Merging #92 (b5f8e76) into main (dce08d6) will increase coverage by 0.18%.
The diff coverage is 92.55%.

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   96.05%   96.23%   +0.18%     
==========================================
  Files          17       17              
  Lines        1547     1621      +74     
==========================================
+ Hits         1486     1560      +74     
  Misses         61       61              
Impacted Files Coverage Δ
src/style/column.rs 50.00% <ø> (ø)
src/table.rs 82.59% <80.00%> (+0.58%) ⬆️
src/utils/arrangement/dynamic.rs 99.73% <98.38%> (+0.93%) ⬆️
src/utils/arrangement/constraint.rs 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Nukesor Nukesor force-pushed the fix-dynamic-calculation branch 2 times, most recently from 0d12c56 to df46087 Compare September 26, 2022 16:08
This bug has been introduced in commit bee764d, when doing the
refactoring on how column content widths were calculated.

The old logic worked with the full width including paddings, the new
logic however only worked with the content width.

Due to this, columns were sometimes pinned to a width that was too small
for their actual content.
The proptest suite now contains extensive tests that ensure constraints
will be respected.
@Nukesor Nukesor merged commit d16ddf3 into main Oct 18, 2022
@Nukesor Nukesor deleted the fix-dynamic-calculation branch October 18, 2022 16:24
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.

How to get formatting of 0.5.1
2 participants