Continuing from above, the Items property for Gallery 1 is a test table and records contain another table within:
Table(
{
Item: 1,
SubTable:
Table(
{Value: "A"},
{Value: "B"},
{Value: "C"}
)
},
{
Item: 2,
SubTable:
Table(
{Value: "B"},
{Value: "C"}
)
},
{
Item: 3,
SubTable:
Table(
{Value: "D"}
)
},
{
Item: 4,
SubTable:
Table(
{Value: "D"},
{Value: "E"},
{Value: "F"},
{Value: "G"}
)
}
)
The Items property for Gallery 2 is the subtable:
ThisItem.SubTable
The template height for both galleries is set to 20, which is smaller than any of the controls with them, meaning as flexible height galleries each must expand to fit its contents.
Finally, the Height property of Gallery2 is defined as:
Sum(Self.AllItems, Label1.Height + Self.TemplatePadding)
AutoHeight for Label1 and Label2 are set to false
How does that compare to your setup?
Bryan