diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-13 10:59:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-13 10:59:00 +0200 |
| commit | 1a16dabfb52a5f3e82afa22ee827d8ed8f17511e (patch) | |
| tree | d99eddbfc533a6ce37fde09d31f656ff31887dcb /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | 9c0cc0db63f61cd71a2a735519dc7816973e5b7e (diff) | |
| parent | 08bde5b2dea65ef3f80af5de4f4caf0e76982b64 (diff) | |
| download | redot-engine-1a16dabfb52a5f3e82afa22ee827d8ed8f17511e.tar.gz | |
Merge pull request #21982 from luzpaz/misc-typos
Misc. typos
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 7fe9f429b0..eae3775e6b 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2898,7 +2898,7 @@ void CanvasItemEditor::_draw_hover() { Size2 item_size = Size2(node_icon->get_size().x + 4 + node_name_size.x, MAX(node_icon->get_size().y, node_name_size.y - 3)); Point2 pos = transform.xform(hovering_results[i].position) - Point2(0, item_size.y) + (Point2(node_icon->get_size().x, -node_icon->get_size().y) / 4); - // Rectify the position to avoid overlaping items + // Rectify the position to avoid overlapping items for (List<Rect2>::Element *E = previous_rects.front(); E; E = E->next()) { if (E->get().intersects(Rect2(pos, item_size))) { pos.y = E->get().get_position().y - item_size.y; |
