浏览代码

focus box size fix for new theme

toger5 8 年之前
父节点
当前提交
7556aacb03
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      editor/plugins/canvas_item_editor_plugin.cpp

+ 0 - 5
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));
 	}