Browse Source

Update inspector window right after creation to fix bugged layout.

Lasse Öörni 11 years ago
parent
commit
159bda2928
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Bin/Data/Scripts/Editor/EditorInspectorWindow.as

+ 2 - 0
Bin/Data/Scripts/Editor/EditorInspectorWindow.as

@@ -119,6 +119,8 @@ void CreateAttributeInspectorWindow()
     attributeInspectorWindow.opacity = uiMaxOpacity;
     attributeInspectorWindow.opacity = uiMaxOpacity;
     attributeInspectorWindow.BringToFront();
     attributeInspectorWindow.BringToFront();
 
 
+    UpdateAttributeInspector();
+
     SubscribeToEvent(attributeInspectorWindow.GetChild("CloseButton", true), "Released", "HideAttributeInspectorWindow");
     SubscribeToEvent(attributeInspectorWindow.GetChild("CloseButton", true), "Released", "HideAttributeInspectorWindow");
     SubscribeToEvent(attributeInspectorWindow, "LayoutUpdated", "HandleWindowLayoutUpdated");
     SubscribeToEvent(attributeInspectorWindow, "LayoutUpdated", "HandleWindowLayoutUpdated");
 }
 }