Page 1 of 1

Datagrid scroller looks strange when coming back to card - SOLVED

Posted: Sun Sep 24, 2017 1:14 pm
by tomsve
Got a strange datagrid scroller problem...

To reproduce the issue;
1) Click card "My List"
2) Scroll down a little bit
3) Click row to change card to a more detailed one
4) Click again on card "My List" - and the list is not correct

Made a small clip
Datagrid scroller problem

In preOpenCard I fill up the datagrid with data, set the new height to dgFormattedHeight, and the top of the grid to 66 pixels. I then call the function "createScroller" to create the scroller. In onCloseCard I use mobileControlDelete to delete the scroller that I created earlier.

Any ideas where I can look to solve this issue...? It's really annoying.

Re: Datagrid scroller looks strange when coming back to card

Posted: Sat Oct 07, 2017 2:59 pm
by tomsve
Solved it by adding these two lines to the bottom of the createScroller function.

Code: Select all

set the vScroll of group "groupScrollArea" to 0
set the top of group "dgMyDatagrid" to 66