This content has been marked as final. Show 3 replies
I played around with your sample code a bit. This is pretty weird. I'll be interested to see what others say about the behavior.
I think this is caused becuase the height is being set with a state: 'panelMin'. When you click the button a second time the panel is still in the 'panelMin' state so flex says 'nothing to do here' and does not bother to set the height property again.
Calling a click handler function from theResize me! button instead of a state change should cause the height to be set everytime it is clicked.
public function onClick():void
height = 30;
<mx:Button label="Resize me!" click="onClick()" />
Thanks for the suggestion - I think you're right. States are interesting to play around with - something like this shows that there is a bit learn about them. It looks like one should work consistently with states and not try change the "state" of the application with other mechanisms. I'll post any other interesting things I come across :-)