Merge pull request #35338 from rburing/fix_find_focus_neighbor

Fix Control::_window_find_focus_neighbour
This commit is contained in:
Rémi Verschelde 2020-01-22 21:16:35 +01:00 committed by GitHub
commit 41feb410a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2475,9 +2475,9 @@ void Control::_window_find_focus_neighbour(const Vector2 &p_dir, Node *p_at, con
Transform2D xform = c->get_global_transform(); Transform2D xform = c->get_global_transform();
points[0] = xform.xform(Point2()); points[0] = xform.xform(Point2());
points[1] = xform.xform(Point2(get_size().x, 0)); points[1] = xform.xform(Point2(c->get_size().x, 0));
points[2] = xform.xform(get_size()); points[2] = xform.xform(c->get_size());
points[3] = xform.xform(Point2(0, get_size().y)); points[3] = xform.xform(Point2(0, c->get_size().y));
float min = 1e7; float min = 1e7;