diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-22 21:16:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 21:16:35 +0100 |
commit | 41feb410a6ec150bd08ac543423d4f9dde1886a3 (patch) | |
tree | 9b5800127b2e008ea6927bc3cdb5a34854051a02 /scene | |
parent | 36e11d1c34e595aa99f90cf3de2dfa1260c81e2b (diff) | |
parent | 40542b0b0f229bf258f00441f9a477e9beb54e24 (diff) |
Merge pull request #35338 from rburing/fix_find_focus_neighbor
Fix Control::_window_find_focus_neighbour
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/control.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 4f499af186..ae48a1356e 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2475,9 +2475,9 @@ void Control::_window_find_focus_neighbour(const Vector2 &p_dir, Node *p_at, con Transform2D xform = c->get_global_transform(); points[0] = xform.xform(Point2()); - points[1] = xform.xform(Point2(get_size().x, 0)); - points[2] = xform.xform(get_size()); - points[3] = xform.xform(Point2(0, get_size().y)); + points[1] = xform.xform(Point2(c->get_size().x, 0)); + points[2] = xform.xform(c->get_size()); + points[3] = xform.xform(Point2(0, c->get_size().y)); float min = 1e7; |