mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-05 22:01:13 +08:00
parent
dfa461b46b
commit
58ff448e76
@ -65,7 +65,7 @@ class Border : public Node {
|
|||||||
if (children_.size() == 2) {
|
if (children_.size() == 2) {
|
||||||
Box title_box;
|
Box title_box;
|
||||||
title_box.x_min = box.x_min + 1;
|
title_box.x_min = box.x_min + 1;
|
||||||
title_box.x_max = box.x_max - 1;
|
title_box.x_max = std::min(box.x_max - 1, box.x_min + children_[1]->requirement().min_x);
|
||||||
title_box.y_min = box.y_min;
|
title_box.y_min = box.y_min;
|
||||||
title_box.y_max = box.y_min;
|
title_box.y_max = box.y_min;
|
||||||
children_[1]->SetBox(title_box);
|
children_[1]->SetBox(title_box);
|
||||||
|
Loading…
Reference in New Issue
Block a user