Browse Source

Min command button width = 100

master
chrisgregan 11 years ago
parent
commit
996a33292e
  1. 2
      Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs

2
Assets/Fungus/FungusScript/Editor/FungusCommandListAdaptor.cs

@ -163,7 +163,7 @@ namespace Fungus.Script
string commandName = commandInfoAttr.CommandName;
GUIStyle commandStyle = new GUIStyle(EditorStyles.miniButtonLeft);
float buttonWidth = Mathf.Max(commandStyle.CalcSize(new GUIContent(commandName)).x, 80f);
float buttonWidth = Mathf.Max(commandStyle.CalcSize(new GUIContent(commandName)).x, 100f);
float indentWidth = command.indentLevel * indentSize;
Rect buttonRect = position;

Loading…
Cancel
Save