|
Post by Kevin Xie on Oct 12, 2023 3:23:17 GMT
(My English is not good, I may have some grammar problems, please do not mind that.) I have a suggestion about scrollbar visibility behaviour. I uploaded 3 images as attachments, 1st image is the original code, 2nd image is my code. Maybe we need a reload method that accept a float parameter to specify the expected ScrollPosition after reloading (consider call ReloadData after controller data has added or deleted, then the total content size will change, and the normalized scroll position will change), see 3rd image for more details.
|
|
|
Post by echo17 on Oct 12, 2023 15:45:47 GMT
ReloadData already has a parameter that allows you to set the position: scrollPositionFactor, which is the normalized position of the scroller from 0 to 1. You can also grab the ScrollPosition before ReloadData and then set it back to this afterward so that it keeps the absolute pixel offset. See Demo #13 (Pagination) for an example of this:
|
|