summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-17 22:36:20 +0200
committerGitHub <noreply@github.com>2017-07-17 22:36:20 +0200
commit4680effcb3a204c94cdf84e074d1852f94e25ace (patch)
treebfd19b65e1282b8515a269467d0f46fbf47b54fb /editor
parent2b8342e308762d8621b8866669797f9fab2da873 (diff)
parent7556aacb038b3c297afddcc3dda43771084d79d1 (diff)
Merge pull request #9666 from toger5/betterFocusCanvasEditor
Focus box size fix for new theme
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 7ce884a455..fb2eb4e39f 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));
}