浏览代码

Bugfix: Fix an issue where Library items could sometimes not be dragged

BearishSun 6 年之前
父节点
当前提交
3baa5a3477
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Source/EditorManaged/Windows/Library/LibraryWindow.cs

+ 3 - 0
Source/EditorManaged/Windows/Library/LibraryWindow.cs

@@ -1252,6 +1252,9 @@ namespace bs.Editor
         private Rect2I GetScrollAreaBounds()
         private Rect2I GetScrollAreaBounds()
         {
         {
             Rect2I bounds = GUI.Bounds;
             Rect2I bounds = GUI.Bounds;
+            bounds.x = 0;
+            bounds.y = 0;
+
             Rect2I folderListBounds = folderListLayout.Bounds;
             Rect2I folderListBounds = folderListLayout.Bounds;
             Rect2I searchBarBounds = searchBarLayout.Bounds;
             Rect2I searchBarBounds = searchBarLayout.Bounds;