iOS Question ScrollView offset

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

Android limits offsetY according Panel.Height. But IOS allows to scroll more. During scroll movement OffsetY can be more than Scrollview.Panel.Height - ScrollView.Height)
In some conditions (for example, "unlimited" list) similar feature is interesting. But if the list is limited, there is no reason to allow OffsetY > Panel.Height - ScrollView.Height

I tried to process Scrollview_ScrollChanged events.
B4X:
If (OffsetY + scrollViewBody.Height) > scrollViewBody.Panel.Height Then scrollViewBody.ScrollTo (0, scrollViewBody.Panel.Height - scrollViewBody.Height, False)
ContentHeight = Panel.Height.
This works, but looks irrational. Probably there is a special property ?
 
Top