Browse Source

Fix incorrect height of block inspector area

Was causing scroll view to extend beyond end of editor window.
master
chrisgregan 10 years ago
parent
commit
d268a40c92
  1. 2
      Assets/Fungus/Flowchart/Editor/BlockInspector.cs

2
Assets/Fungus/Flowchart/Editor/BlockInspector.cs

@ -42,7 +42,7 @@ namespace Fungus
blockEditor.DrawBlockName(flowchart); blockEditor.DrawBlockName(flowchart);
// Using a custom rect area to get the correct 5px indent for the scroll views // Using a custom rect area to get the correct 5px indent for the scroll views
Rect blockRect = new Rect(5, topPanelHeight, Screen.width - 6, Screen.height); Rect blockRect = new Rect(5, topPanelHeight, Screen.width - 6, Screen.height - 70);
GUILayout.BeginArea(blockRect); GUILayout.BeginArea(blockRect);
blockScrollPos = GUILayout.BeginScrollView(blockScrollPos, GUILayout.Height(flowchart.blockViewHeight)); blockScrollPos = GUILayout.BeginScrollView(blockScrollPos, GUILayout.Height(flowchart.blockViewHeight));

Loading…
Cancel
Save