Hello,
I found a weird behavior that if the text of RadGalleryItem is longer than the image width, the margin/padding settings will lost.
To reproduce the issue, I changed the demo from:
https://www.telerik.com/forums/radgalleryelement-display-issue
RadGalleryItem blueItem1 = new RadGalleryItem("blue 1", Properties.Resources.group);this.radGalleryElement1.Items.Add(blueItem1);blueItem1.TextImageRelation = TextImageRelation.ImageAboveText;blueItem1.ImageAlignment = ContentAlignment.MiddleCenter;blueItem1.Margin = new Padding(1);RadGalleryItem blueItem2 = new RadGalleryItem("blue 222222222", Properties.Resources.group);this.radGalleryElement1.Items.Add(blueItem2);blueItem2.Margin = new Padding(1);blueItem2.TextImageRelation = TextImageRelation.ImageAboveText;blueItem2.ImageAlignment = ContentAlignment.MiddleCenter;RadGalleryItem blueItem3 = new RadGalleryItem("blue 3", Properties.Resources.group);this.radGalleryElement1.Items.Add(blueItem3);blueItem3.Margin = new Padding(1);blueItem3.TextImageRelation = TextImageRelation.ImageAboveText;blueItem3.ImageAlignment = ContentAlignment.MiddleCenter;RadGalleryItem blueItem4 = new RadGalleryItem("blue 4", Properties.Resources.group);this.radGalleryElement1.Items.Add(blueItem4);blueItem4.Margin = new Padding(1);blueItem4.TextImageRelation = TextImageRelation.ImageAboveText;blueItem4.ImageAlignment = ContentAlignment.MiddleCenter;
Please see the attach photo.
I've done 3 tests. First 2 tests work well as long as the text size is shorter than image width.
In the third one, I named on purpose blueItem2 with a long name "blue222222". In this case, I've lost all my margin settings.
