diff options
| author | toger5 | 2017-02-22 00:45:31 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-05-07 14:23:56 +0200 |
| commit | 304a1f5b5a3ce6975952f5cd22d688a246367790 (patch) | |
| tree | 14de7920daa3f90af91c668b3edcccdf439ed6f2 /scene/gui/popup_menu.cpp | |
| parent | c8aea60324e3e219945a805f871363c10292f38b (diff) | |
| download | godot-304a1f5b5a3ce6975952f5cd22d688a246367790.tar.gz godot-304a1f5b5a3ce6975952f5cd22d688a246367790.tar.zst godot-304a1f5b5a3ce6975952f5cd22d688a246367790.zip | |
Diffstat (limited to 'scene/gui/popup_menu.cpp')
| -rw-r--r-- | scene/gui/popup_menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index 6ac6eac65..9b9dd820b 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -273,7 +273,7 @@ void PopupMenu::_gui_input(const InputEvent &p_event) { Point2 pos = get_position(); int s = (vseparation + font->get_height()) * 3; - pos.y -= s; + pos.y -= (s * b.factor); set_position(pos); //update hover @@ -293,7 +293,7 @@ void PopupMenu::_gui_input(const InputEvent &p_event) { Point2 pos = get_position(); int s = (vseparation + font->get_height()) * 3; - pos.y += s; + pos.y += (s * b.factor); set_position(pos); //update hover |
