diff options
author | David Runge <dave@sleepmap.de> | 2016-07-25 19:40:09 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-07-25 19:40:09 +0200 |
commit | d9232f2f1c054c2b4e4df016fc9b040899f6c18b (patch) | |
tree | 669d7f8f673d59bf13f1a7e19bed28e3dfe73082 /classes/BowelyzerGUI.sc | |
parent | 95962308af3cf8850736332591a19f6399c7ec28 (diff) | |
download | bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.gz bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.bz2 bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.xz bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.zip |
classes/BowelyzerGUI.sc: Make width of controlsGroupButton dependant on its amount of letters in the name.
Diffstat (limited to 'classes/BowelyzerGUI.sc')
-rw-r--r-- | classes/BowelyzerGUI.sc | 3 |
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") ; } |