mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Fix vscroll hidding the last character. (#575)
This resolve: https://github.com/ArthurSonzogni/FTXUI/issues/574
This commit is contained in:
@@ -27,10 +27,8 @@ Element vscroll_indicator(Element child) {
|
||||
}
|
||||
|
||||
void SetBox(Box box) override {
|
||||
NodeDecorator::SetBox(box);
|
||||
if (box_.x_min > box_.x_max) {
|
||||
box_.x_max--;
|
||||
}
|
||||
Node::SetBox(box);
|
||||
box.x_max--;
|
||||
children_[0]->SetBox(box);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user