mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Make flexible element to be shrinkable.
This make the application "just-fast" to look better.
This commit is contained in:
@@ -54,7 +54,7 @@ class VBox : public Node {
|
||||
|
||||
child_box.y_max = y + child->requirement().min.y - 1;
|
||||
|
||||
if (child->requirement().flex.y && remaining_extra_space > 0) {
|
||||
if (child->requirement().flex.y) {
|
||||
int added_space = remaining_extra_space * child->requirement().flex.y /
|
||||
remaining_flex;
|
||||
remaining_extra_space -= added_space;
|
||||
|
Reference in New Issue
Block a user