Skip to content

Fix: make refresh indicator appear above list headers

Tobias Fella requested to merge (removed):work/refreshableScrollViewFix into master

When using a refreshing feature of ScrollablePages with ListViews with headers, the refresh indicator appears inside the header. This happens since the calculation in RefreshableScrollView assumes contentY to be 0 when the list is in topmost position, which is not the case for ListViews with headers (Qt Doc on for contentY). To make the calculation correct, originY needs to be added to the y position of the refresh indicator. This does break the calculation of the refresh activation, which is fixed by removing the special handling of the header height, which is not needed anymore.

Merge request reports