Explorar o código

Fixed a bug in Project Window where vert & horz scrollbars would appear when not needed

Marko Pintera %!s(int64=10) %!d(string=hai) anos
pai
achega
93b17b4f0f
Modificáronse 2 ficheiros con 6 adicións e 3 borrados
  1. 6 2
      MBansheeEditor/ProjectWindow.cs
  2. 0 1
      TODO.txt

+ 6 - 2
MBansheeEditor/ProjectWindow.cs

@@ -1047,6 +1047,8 @@ namespace BansheeEditor
 
             contentInfo.underlay.AddElement(catchAll);
 
+            Debug.Log(contentBounds);
+
             UpdateDragSelection(dragSelectionEnd);
         }
 
@@ -1354,9 +1356,11 @@ namespace BansheeEditor
         private Rect2I GetScrollAreaBounds()
         {
             Rect2I bounds = GUI.Bounds;
+            Rect2I folderListBounds = folderListLayout.Bounds;
             Rect2I searchBarBounds = searchBarLayout.Bounds;
-            bounds.y += searchBarBounds.height;
-            bounds.height -= searchBarBounds.height;
+
+            bounds.y += folderListBounds.height + searchBarBounds.height;
+            bounds.height -= folderListBounds.height + searchBarBounds.height;
 
             return bounds;
         }

+ 0 - 1
TODO.txt

@@ -34,7 +34,6 @@ Test:
  - Cut/Copy/Paste/Duplicate
 
 Later:
- - Drag to select multiple entries?
  - Hook up ping effect so it triggers when I select a resource or sceneobject
   - Add ping to SceneTreeView
  - Consider delaying search until user stops pressing keys