This is quite an odd problem. I've got a scrollLayout which houses a number of children, one of them being a rowLayout with two columns: a text control in column 1, and a button control in column 2. The text control's label is coded dynamically, so the label could be of any length long. Because of this, I made column 1 adjustable.
The problem I'm facing is this: for whatever reason, whenever I open up my GUI, that button control is invisible until I resize the window, then it appears. Is there any way to fix this?
CODE
string $sameSize = ("scrollLayout -e -h "+ $winHeight +" -w "+ $winWidth +" theScroll;");
scrollLayout
-p topNode
-resizeCommand $sameSize
-cr 1 //We want the children to be as wide as the scroll area.
-hst 0 //Hide the horizontal scroll bar.
theScroll;
...
//The entity type for the current selected object.
rowLayout
-numberOfColumns 2
-cw 1 102
-ad2 1
-cw 2 20
-p standard
curEntityType;
text
-label ("Current:" + LM\_getEntityType ""
)
-p "curEntityType"
-ann ("The current EntityType is " + LM\_getEntityType ""
+ ".")
-width 120
curTypeText;
//Problem occurs here:
button
-label "Set"
-p "curEntityType"
-c "LM_setEntityType optionMenuGrp -query -value entityTypeMenu
";