aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-09 18:50:44 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-09 18:50:44 +0200
commitb9e2e454918faad91b8aea718d4dcd42b953e8d7 (patch)
tree7fdb7086ff754ef93ecf88659066071fd6b75a56 /classes
parent400e13a882ffa812387a35d91d7d39b90a16b4f8 (diff)
downloadbowelyzer-0.7.5.tar.gz
bowelyzer-0.7.5.tar.bz2
bowelyzer-0.7.5.tar.xz
bowelyzer-0.7.5.zip
classes/BowelyzerGUI.sc: Introducing a short wait, before setting up headView items, as otherwise in cases when coming from setups with more channels they will have broken width attributes and numbers and/or text will not be shown properly.0.7.5
Diffstat (limited to 'classes')
-rw-r--r--classes/BowelyzerGUI.sc21
1 files changed, 12 insertions, 9 deletions
diff --git a/classes/BowelyzerGUI.sc b/classes/BowelyzerGUI.sc
index 728d73a..02a621a 100644
--- a/classes/BowelyzerGUI.sc
+++ b/classes/BowelyzerGUI.sc
@@ -214,15 +214,18 @@ BowelyzerGUI{
headView.layout.spacing = 0;
headView.layout.margins = [2,0,2,0];
headView.maxHeight_(buttonHeight);
- this.setupEZText(headView, "name", name.asString).children.do({|item|
- if(item.isKindOf(StaticText),{item.align_(\left)});
- if(item.isKindOf(TextField),{item.align_(\right)});
- });
- this.setupEZNumber(headView, "input", config.at(\inputs).at(name)).children.do({|item|
- if(item.isKindOf(StaticText),{item.align_(\left)});
- if(item.isKindOf(NumberBox),{item.align_(\right)});
- });
- this.setupChannelCloseButton(headView, name);
+ Routine{
+ 0.5.wait;
+ this.setupEZText(headView, "name", name.asString).children.do({|item|
+ if(item.isKindOf(StaticText),{item.align_(\left)});
+ if(item.isKindOf(TextField),{item.align_(\right)});
+ });
+ this.setupEZNumber(headView, "input", config.at(\inputs).at(name)).children.do({|item|
+ if(item.isKindOf(StaticText),{item.align_(\left)});
+ if(item.isKindOf(NumberBox),{item.align_(\right)});
+ });
+ this.setupChannelCloseButton(headView, name);
+ }.play(AppClock);
controlMeterContainerView = View(channelView.asView, Rect(0, 0, controlMeterContainerViewWidth, controlMeterContainerViewHeight));
controlMeterContainerView.asView.background = Color.fromHexString("#DDDDEF");