Can verticalScrollDisabled be set to true after scrollView creation?

I am using scrollView in a detail page where I would like to lock the scrollView if the content is less than a page tall. I don’t know the content size at scrollView creation time as it gets loaded from a db later on based on user choice.

Documentation is not clear on this. Can verticalScrollDisabled be set to true after scrollView creation? At the moment it does not seem to work for me.

Thanks much for your clarification. 

You can use scrollView.disabled = true

Thanks Jon but this does not work for me. Widgets 2.0. Is it supposed to be working? Perhaps a new bug?

Ok. I tried both 

scrollView.verticalScrollDisabled = true

scrollView.disabled = true

on WidgetDemo tab 2 scrollView and found neither to work there either. Is this a bug or were these never meant to work after creation time?

Please confirm so I file a bug report if needed. Thanks. 

how about

scrollView._view._isLocked = true

Oops, sorry, I think that was from v1.0.

Try this:

scrollView._view._isVerticalScrollingDisabled = true

That didn’t work. Sorry. 

Yes!!! That works!!! Its one of those internal undocumented things though. Wonder what the CL position is. I don’t mind using it now though. Thanks for sharing. 

Hey guys,

I’ll expose those properties soon. I’ll let you know once they hit daily builds.

Alex

Thanks

Great news!!! Thank you very much!

You can use scrollView.disabled = true

Thanks Jon but this does not work for me. Widgets 2.0. Is it supposed to be working? Perhaps a new bug?

Ok. I tried both 

scrollView.verticalScrollDisabled = true

scrollView.disabled = true

on WidgetDemo tab 2 scrollView and found neither to work there either. Is this a bug or were these never meant to work after creation time?

Please confirm so I file a bug report if needed. Thanks. 

how about

scrollView._view._isLocked = true

Oops, sorry, I think that was from v1.0.

Try this:

scrollView._view._isVerticalScrollingDisabled = true

That didn’t work. Sorry. 

Yes!!! That works!!! Its one of those internal undocumented things though. Wonder what the CL position is. I don’t mind using it now though. Thanks for sharing. 

Hey guys,

I’ll expose those properties soon. I’ll let you know once they hit daily builds.

Alex

Thanks

Great news!!! Thank you very much!