From 7556aacb038b3c297afddcc3dda43771084d79d1 Mon Sep 17 00:00:00 2001 From: toger5 Date: Sun, 16 Jul 2017 20:07:06 +0200 Subject: [PATCH] focus box size fix for new theme --- editor/plugins/canvas_item_editor_plugin.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 7ce884a4558..fb2eb4e39f8 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1897,11 +1897,6 @@ void CanvasItemEditor::_viewport_draw() { if (viewport->has_focus()) { Size2 size = viewport->get_size(); - if (v_scroll->is_visible_in_tree()) - size.width -= v_scroll->get_size().width; - if (h_scroll->is_visible_in_tree()) - size.height -= h_scroll->get_size().height; - get_stylebox("Focus", "EditorStyles")->draw(ci, Rect2(Point2(), size)); }