Re: independent template size in gallery, nested gallery
Hey ShpxLbh,
what about something like this using a Blank Flexible Height Gallery:
Using a collection like this:
ClearCollect(
collection,
Table(
{
Title: "1",
Fill: Color.Blue,
MakeBig: false
},
{
Title: "The Quick Brown Fox Jumps Over The Lazy Dog",
Fill: Color.Yellow,
MakeBig: false
},
{
Title: "Cheddar Cheese",
Fill: Color.Red,
MakeBig: false
}
)
)
We can use the MakeBig boolean value to control the height of a label in the gallery.

Code in the Button (Although this could be anything OnSelect-y
UpdateIf(collection,ThisItem.Title = ThisRecord.Title,{MakeBig: !MakeBig})
The Label control then has its height defined by the variable:
If(ThisItem.MakeBig,40,100)
I've used a label as an example here, but it can also be blank:

One caveat is you'll need to define the Height/Y co-ordinates of objects based on the state of the boolean value.
A nested gallery, for example, could have its Height (Not it's template height) defined by the parent collection.
Hope this helps you out 🙂