Setting the ScrollView "width" property to "Ti.UI.SIZE" will do a "Ti.UI.FiLL" instead as of Titanium 6.3.0.
(This is not an issue with the "height" property. Only the "width".)
Code to Reproduce:
The above code produces a yellow ScrollView. Note that the ScrollView does not auto-size itself to just fit the "Hello World" label as seen in "Screenshot-Bad.png".
The ScrollView width should auto-size itself to fit the label as shown in "Screenshot-Good.png". This is how it worked in Titanium 6.2.2 and older versions.
This bug happened when we added "RefreshControl" support. Google's Java "SwipeRefreshLayout" class does not support the "WRAP_CONTENT" setting.
Modify Titanium's Java "TiSwipeRefreshLayout" onMeasure() method to handle the "WRAP_CONTENT" setting ourselves. We're already doing this in the vertical direction and we need to do the same for the horizontal.