Fix: Forward gridbox selected box. (#408)

This was discovered in:
https://github.com/ArthurSonzogni/FTXUI/issues/407
This commit is contained in:
Arthur Sonzogni
2022-05-28 22:35:52 +02:00
committed by GitHub
parent 219daf46ff
commit ed5b4cec49
5 changed files with 69 additions and 28 deletions

View File

@@ -24,8 +24,8 @@ class Select : public Node {
auto& selected_box = requirement_.selected_box;
selected_box.x_min = 0;
selected_box.y_min = 0;
selected_box.x_max = requirement_.min_x;
selected_box.y_max = requirement_.min_y;
selected_box.x_max = requirement_.min_x - 1;
selected_box.y_max = requirement_.min_y - 1;
requirement_.selection = Requirement::SELECTED;
};