Data cards change order when viewed on different platforms: mobile, web, preview
I'm having an issue in which my data cards are appearing in different orders on different platforms. I've tried 3 methods and none provide a consistent ordering across iOS, web and web editor preview mode.
I have 2 forms that show/hide data cards depending on toggled context variables controlled by other fields.
For the first form, I used the method described in this post--padding the Y values of each card:
This works for form 1 and still works for it, across all platforms.
For the second form, I wanted to try something a little more elegant, so I use something along the lines of:
this worked for a long time until this week. I opened my app on Monday, and the toggled datacards, when visible, show up in an overlapping stack. I added a textbox to view their Height & Y values, and they all have the same Y, and it does not change when toggled! This behavior was only present in the browser play app mode. Mobile and editor preview continued to display correctly.
So I changed the Y values to be based on the last non-toggled datacard's Y:
This worked in preview and browser, but is broken in mobile > one card is reordering itself.
So I tried the fixed values method that I used on my first form. This didn't work at all for form 2, though form 1 is still performing correctly. Form fields are all rearranged in form 2 in all platforms.
I'm not sure what other recourse I have. Option 1 (y based on y+ht of data card above) should be the optimal route, and could be fixed by exposing z-values (checking in dev mode on Chrome, the datacards all have different z positions, which is why they overlap).
Option 2 should be working without issue. That's gotta be a bug.
Option 3 is also a bug, and is the issue addressed in OP.