Compare commits

..

1 Commits

Author SHA1 Message Date
Clément Roblot
7cad9d86a7
Merge 52e92a99be into dfa461b46b 2024-11-27 21:52:42 +01:00

View File

@ -65,7 +65,7 @@ class Border : public Node {
if (children_.size() == 2) {
Box title_box;
title_box.x_min = box.x_min + 1;
title_box.x_max = std::min(box.x_max - 1, box.x_min + children_[1]->requirement().min_x);
title_box.x_max = box.x_max - 1;
title_box.y_min = box.y_min;
title_box.y_max = box.y_min;
children_[1]->SetBox(title_box);