I need to be able to scroll through data in a Data Grid using the Mobile Native Control Scroller.
I've been able to get the functionality working in the attached Stack, HOWEVER, I cannot get the scroller to go to the very bottom or far right of the DataGrid on Android.
If you look a the Data Grid Scroll bar it shows that there is more data, but the native scroller will not scroll there. If you tap on the DG scroll bar it will take you to the data, but the Native Scroller will not.
Here is my code in the ScrollerDidScroll handler:
Code: Select all
on scrollerDidScroll hOffset, vOffset if environment() is not "mobile" then exit scrollerDidScroll if scrollID is Empty OR scrollGroupID is Empty then logSaverError "Scrolled without valid Scroll definition: " && scrollID && scrollGroupID exit scrollerDidScroll end if -- Set the DataGrid Scroll put vOffset + 0 into VertOffset -- Size of the Header if VertOffset >= 0 then set the dgVScroll of scrollGroupID to VertOffset else set the dgVScroll of scrollGroupID to 0 end if if hOffset >= 0 then set the dgHScroll of scrollGroupID to hOffset else set the dgHScroll of scrollGroupID to 0 end if end scrollerDidScroll
Am I doing something wrong or is this a bug?