diff --git a/Assets/Fungus/Scripts/Editor/BlockEditor.cs b/Assets/Fungus/Scripts/Editor/BlockEditor.cs index 040dc75b..939c51d4 100644 --- a/Assets/Fungus/Scripts/Editor/BlockEditor.cs +++ b/Assets/Fungus/Scripts/Editor/BlockEditor.cs @@ -287,14 +287,14 @@ namespace Fungus.EditorUtils { lastCMDpopupPos = pos; lastCMDpopupPos.x += EditorGUIUtility.labelWidth; - lastCMDpopupPos.y += EditorGUIUtility.singleLineHeight; + lastCMDpopupPos.y += EditorGUIUtility.singleLineHeight*2; } // Add Button if (GUILayout.Button(addIcon)) { CommandSelectorPopupWindowContent.ShowCommandMenu(lastCMDpopupPos, "", target as Block, (int)(EditorGUIUtility.currentViewWidth), - (int)(EditorWindow.focusedWindow.position.height - lastCMDpopupPos.y - EditorGUIUtility.singleLineHeight*3)); + (int)(EditorWindow.focusedWindow.position.height - lastCMDpopupPos.y)); } // Duplicate Button diff --git a/Assets/Fungus/Scripts/Editor/CommandSelectorPopupWindowContent.cs b/Assets/Fungus/Scripts/Editor/CommandSelectorPopupWindowContent.cs index 4f2b41a2..62449ebe 100644 --- a/Assets/Fungus/Scripts/Editor/CommandSelectorPopupWindowContent.cs +++ b/Assets/Fungus/Scripts/Editor/CommandSelectorPopupWindowContent.cs @@ -68,7 +68,8 @@ namespace Fungus.EditorUtils { curBlock = block; - var win = new CommandSelectorPopupWindowContent(currentHandlerName, block, width, height); + var win = new CommandSelectorPopupWindowContent(currentHandlerName, block, + width, (int)(height - EditorGUIUtility.singleLineHeight * 3)); PopupWindow.Show(position, win);