Datagrid scroller looks strange when coming back to card - SOLVED

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
tomsve
Posts: 45
Joined: Tue Jan 20, 2015 5:01 pm
Location: Ukraine/Armenia

Datagrid scroller looks strange when coming back to card - SOLVED

Post by tomsve » Sun Sep 24, 2017 1:14 pm

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.
Last edited by tomsve on Sat Oct 07, 2017 2:59 pm, edited 1 time in total.

tomsve
Posts: 45
Joined: Tue Jan 20, 2015 5:01 pm
Location: Ukraine/Armenia

Re: Datagrid scroller looks strange when coming back to card

Post by tomsve » Sat Oct 07, 2017 2:59 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”