aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/BowelyzerGUI.sc3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/BowelyzerGUI.sc b/classes/BowelyzerGUI.sc
index fc5444b..162f26a 100644
--- a/classes/BowelyzerGUI.sc
+++ b/classes/BowelyzerGUI.sc
@@ -392,7 +392,7 @@ BowelyzerGUI{
// setup a Button for a control group by name
setupControlsGroupButton{
arg group, parent;
- Button(parent: parent, bounds: Rect(0, 0, buttonWidth, buttonHeight))
+ Button(parent: parent, bounds: Rect(0, 0, (8*group.asString.size), buttonHeight))
.states_([
[group.asString, Color.black, Color.fromHexString("#99FF99")]
])
@@ -400,7 +400,6 @@ BowelyzerGUI{
arg controlUnit;
this.showControlsByType(controlUnit.string, controlUnit.parent.children, controlUnit.parent.parent);
})
- .maxSize_(buttonWidth@buttonHeight)
.name_(group.asString++"Button")
;
}