I've been playing about with the kitchen sink demo. I wanted to try dynamically changing the scrolling direction of the sourcePanel from 'both' to, eg, 'vertical' and back again, depending on which menu option you'd chosen.
In the onSourceButtonTap I've tried changing:
this.sourcePanel.scroll = newDirection;
This seems to work the first time, but second and subsequent invocations of this line don't seem to have any effect - the scrolling direction is fixed to whatever it was set to first time round by this line. Am I doing the wrong thing? Is there a better/correct way to reset the scrolling direction of a panel?