You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Before 0.16 our table layout worked with all columns being precisely sized and then using Constraint::Min(0) to use all the rest of available space to fill. This worked and 0.16 did not mentioned anything about this being changes but it does not work anymore.
I noticed that the table example only shows 2 rows in 0.16 instead of 3 rows which are provided in the code and
which can be seen in the example build with version 0.15 . Is this the same bug or should i report it seperately?
Third column in table example was using the `Max` constraint.
But since version 0.16, the layout system does not add a hidden constraint on the last column which would ensure that it fills the remaining available space (a change that was already mentioned in #525). In addition, `tui` does not support sizing based on content because of its immediate mode nature. Therefore, `Max` is now resolved to `0`. Replacing with `Min` fixes the issue.
A new way of specifying constraints is being worked on at #519 which should for more deterministic and advanced layout.
Third column in table example was using the `Max` constraint.
But since version 0.16, the layout system does not add a hidden constraint on the last column which would ensure that it fills the remaining available space (a change that was already mentioned in #525). In addition, `tui` does not support sizing based on content because of its immediate mode nature. Therefore, `Max` is now resolved to `0`. Replacing with `Min` fixes the issue.
A new way of specifying constraints is being worked on at #519 which should for more deterministic and advanced layout.
Description
Before 0.16 our table layout worked with all columns being precisely sized and then using
Constraint::Min(0)
to use all the rest of available space to fill. This worked and 0.16 did not mentioned anything about this being changes but it does not work anymore.To Reproduce
Switching to
Constraint::Percentage(100)
luckily workaround the issue.See: https://github.com/extrawurst/gitui/pull/845/files
Expected behavior
The previous behaviour.
Screenshots
Before we upgraded to
0.16
:After we upgraded to
0.16
:Environment
Additional context
I assume this regression was introduced in: #514
The text was updated successfully, but these errors were encountered: