diff options
| author | toger5 | 2017-07-16 20:07:06 +0200 |
|---|---|---|
| committer | toger5 | 2017-07-16 20:07:06 +0200 |
| commit | 7556aacb038b3c297afddcc3dda43771084d79d1 (patch) | |
| tree | ba8552d729b088811cc4598c5ec61c75735c9100 /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | 4366b7c8b0bf452236cdfd034d3a0e5d851576b9 (diff) | |
| download | godot-7556aacb038b3c297afddcc3dda43771084d79d1.tar.gz godot-7556aacb038b3c297afddcc3dda43771084d79d1.tar.zst godot-7556aacb038b3c297afddcc3dda43771084d79d1.zip | |
focus box size fix for new theme
Diffstat (limited to '')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 5 |
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 7ce884a45..fb2eb4e39 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)); } |
