Skip to content

Commit

Permalink
Fix: Properly changing window title text color #940 (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chessom authored Dec 1, 2024
1 parent dfa461b commit 58ff448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ftxui/dom/border.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58ff448

Please sign in to comment.