From b9e2e454918faad91b8aea718d4dcd42b953e8d7 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 9 Jul 2016 18:50:44 +0200 Subject: 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. --- classes/BowelyzerGUI.sc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'classes/BowelyzerGUI.sc') 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"); -- cgit v1.2.3-70-g09d2