cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TimmyBoy
Post Patron
Post Patron

Gallery messed up

Hello,

Seems my gallery is messed up

How can i fix this?

TimmyBoy_0-1670907218473.png

When the lbldescription label text is to long the rectbar also has to drop so it all fits well.

I have on RectBar.Y this code

If(Imageout.Visible, Imageout.Y + Imageout.Height + 30, LblDescription.Y + LblDescription.Height + 30)

Imageout is where you see the hide button under first test we made is this image.

And on the gallery template size i have 200

lbldescription has also height = true and wordwrap =true

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @TimmyBoy ,

 

Yes, and usually Y axis value of the rectangle bar is set to TemplateHeight -1.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-jefferni
Community Support
Community Support

Hi @TimmyBoy ,

 

For Gallery Controls, the template sizes of each item are all the same, so the rectangle bas that use for differentiating individual items need to be just upon the bottom of each template. So, if you have managed the Y axis value of the Controls within a template to be larger than template height, the previous template controls will cover the controls within next template.

 

For your case, you need to set the height of the template to the height of the maximum template possible.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hello @v-jefferni 

If i change the template size with 300

I get to much space under the rectbar

Hi @TimmyBoy ,

 

Yes, and usually Y axis value of the rectangle bar is set to TemplateHeight -1.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

@v-jefferni 

TimmyBoy_0-1670983885790.png

 

Thank you

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (4,097)