Fix: Properly changing window title text color #940 (#961)

This commit is contained in:
Vemy 2024-12-01 16:38:09 +08:00 committed by ArthurSonzogni
parent a015d8b2d8
commit 6900283afe
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

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 = 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_max = box.y_min;
children_[1]->SetBox(title_box);