From d268a40c92849d825b2b28da2de9a2176d6049a3 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 16 Apr 2015 12:43:15 +0100 Subject: [PATCH] Fix incorrect height of block inspector area Was causing scroll view to extend beyond end of editor window. --- Assets/Fungus/Flowchart/Editor/BlockInspector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Flowchart/Editor/BlockInspector.cs b/Assets/Fungus/Flowchart/Editor/BlockInspector.cs index 5fc00df7..d40b1186 100644 --- a/Assets/Fungus/Flowchart/Editor/BlockInspector.cs +++ b/Assets/Fungus/Flowchart/Editor/BlockInspector.cs @@ -42,7 +42,7 @@ namespace Fungus blockEditor.DrawBlockName(flowchart); // 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); blockScrollPos = GUILayout.BeginScrollView(blockScrollPos, GUILayout.Height(flowchart.blockViewHeight));