Page 1 of 1

Deleting contents inside a scroller and contents shift accordingly [Solved]

Posted: Fri Sep 11, 2020 4:26 am
by EddieLee
Hi all,

Grp 1
Grp 2
Grp 3
Grp 4

Imagine these 4 grps are placed vertically on a card inside a scroller. What will be the best way that when a user deletes grp 1, grp 2,3,4 will move up. Delete grp 2, grp 3,4 will move up.
Assuming all the grp contains img, flds and widget.
Thanks !

Re: Deleting contents inside a scroller and contents shift accordingly

Posted: Fri Sep 11, 2020 5:10 am
by kdjanz
Use a field with List behaviour?

Re: Deleting contents inside a scroller and contents shift accordingly

Posted: Fri Sep 11, 2020 5:36 am
by EddieLee
kdjanz wrote:
Fri Sep 11, 2020 5:10 am
Use a field with List behaviour?
Hi,

What do you mean?

Re: Deleting contents inside a scroller and contents shift accordingly

Posted: Fri Sep 11, 2020 1:58 pm
by dunbarx
Hi.

Not sure how this goes down in mobile, since I do not develop for it, but back in good ol' LC (pseudo):

Code: Select all

on mouseUp
   repeat with y = 4 down to 2
      set the top of grp y to the top of grp (y-1)
   end repeat
   delete grp 1
end mouseUp
Craig