Skip to content

Commit

Permalink
Make dropdowns near the top of the screen go down.
Browse files Browse the repository at this point in the history
  • Loading branch information
savask committed Apr 12, 2024
1 parent 0cfb91c commit 351dc6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/interface/DropDown.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 351dc6e

Please sign in to comment.