mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-17 14:28:30 +01:00
Fix element buttons missing from element search
Visible since c3cd4f1691b4, which made element search scrollable. The last row of buttons was only shown if it had exactly as many buttons as many fit.
This commit is contained in:
parent
c85ebe4a0a
commit
82bcb0ef9e
@ -192,7 +192,11 @@ void ElementSearchActivity::searchTools(String query)
|
||||
}
|
||||
}
|
||||
|
||||
scrollPanel->InnerSize = ui::Point(scrollPanel->Size.X, current.Y + 1);
|
||||
if (current.X == 0)
|
||||
{
|
||||
current.Y -= 19;
|
||||
}
|
||||
scrollPanel->InnerSize = ui::Point(scrollPanel->Size.X, current.Y + 20);
|
||||
}
|
||||
|
||||
void ElementSearchActivity::SetActiveTool(int selectionState, Tool * tool)
|
||||
|
Loading…
x
Reference in New Issue
Block a user