I'm confused as to the nature of the "magic" of a flexible gallery. The way I understand it is simply that the templateheight can be different for each item, and that you set it with a formula. Making it fixed would defy the purpose no ? I really think this is a bug. Maybe somebody can reproduce it ?
I have 3 flexible gallery's in a vertical container. They each have one item. The formulas for gal1, gal2 and gal3 are:
First Gallery:
Templatesize: gal1LastLabel.Y + gal1LastLabel.Height
Height: gal1LastLabel.Y + gal1LastLabel.Height + 5
LayoutMinHeight: gal1LastLabel.Y + gal1LastLabel.Height + 5
Second Gallery:
Templatesize: gal2LastLabel.Y + gal2LastLabel.Height
Height: gal2LastLabel.Y + gal2LastLabel.Height + 5
LayoutMinHeight: gal2LastLabel.Y + gal2LastLabel.Height + 5
Third gallery:
Templatesize: gal3LastLabel.Y + gal3LastLabel.Height
Height: gal3LastLabel.Y + gal3LastLabel.Height + 5
LayoutMinHeight: gal3LastLabel.Y + gal3LastLabel.Height + 5
The first time the screen is shown the gallery size for the first gallery is too large. There is a large gap between the first gallery and the second gallery.

When I go back and reenter the same screen, the total size of the first gallery is correct, and the second gallery fits nicely underneath it.

It happens both in the browser and in the app on smartphone. When I run the app in preview from within the edit session, this behavior does not occur and everything is correct as expected.
Stephane