mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 21:51:20 +02:00
Make dropdowns near the top of the screen go down.
This commit is contained in:
@@ -15,7 +15,8 @@ class DropDownWindow : public ui::Window
|
||||
|
||||
public:
|
||||
DropDownWindow(DropDown * dropDown):
|
||||
Window(dropDown->GetScreenPos() + ui::Point(-1, -1 - dropDown->optionIndex * 16), ui::Point(dropDown->Size.X+2, 2+dropDown->options.size()*16)),
|
||||
Window(dropDown->GetScreenPos() + ui::Point(-1, -1 - (dropDown->optionIndex*16 < dropDown->GetScreenPos().Y ? dropDown->optionIndex*16 : 0)),
|
||||
ui::Point(dropDown->Size.X+2, 2+dropDown->options.size()*16)),
|
||||
dropDown(dropDown),
|
||||
appearance(dropDown->Appearance)
|
||||
{
|
||||
|
Reference in New Issue
Block a user