summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoger5 <toger5@hotmail.de>2017-07-16 20:07:06 +0200
committertoger5 <toger5@hotmail.de>2017-07-16 20:07:06 +0200
commit7556aacb038b3c297afddcc3dda43771084d79d1 (patch)
treeba8552d729b088811cc4598c5ec61c75735c9100
parent4366b7c8b0bf452236cdfd034d3a0e5d851576b9 (diff)
focus box size fix for new theme
-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));
}