summaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-12-10 16:11:57 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-12-10 16:11:57 -0300
commit48027448bf2abdfbb32ae72a3383423488621ab2 (patch)
tree50693b0fed4e81abb299b09c225450d180749a5e /scene/main/viewport.cpp
parentd8fdb8796a453e28879126484af6e52c8909bd34 (diff)
Fix tooltip position in embedded window
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 6350777a3d..7de1a00a49 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1580,7 +1580,7 @@ void Viewport::_gui_show_tooltip() {
Point2 tooltip_offset = ProjectSettings::get_singleton()->get("display/mouse_cursor/tooltip_position_offset");
Rect2 r(gui.tooltip_pos + tooltip_offset, gui.tooltip_popup->get_contents_minimum_size());
- Rect2i vr = gui.tooltip_popup->get_parent_visible_window()->get_usable_parent_rect();
+ Rect2i vr = gui.tooltip_popup->get_usable_parent_rect();
if (r.size.x + r.position.x > vr.size.x + vr.position.x) {
r.position.x = vr.position.x + vr.size.x - r.size.x;