Skip to content

Commit 3e6a339

Browse files
committed
Carousel linear mode dynamic image changes committed
1 parent eef59b0 commit 3e6a339

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

maui/src/Carousel/Platform/Android/PlatformCarousel.Android.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using IList = System.Collections.IList;
1313
using Syncfusion.Maui.Toolkit.Carousel.Platform;
1414
using Rect = Android.Graphics.Rect;
15+
using Microsoft.Maui.Platform;
1516

1617
namespace Syncfusion.Maui.Toolkit.Carousel
1718
{
@@ -631,6 +632,11 @@ void OnItemHeightChanged()
631632
{
632633
Refresh();
633634
}
635+
636+
if (viewMode == ViewMode.Linear && linearLayout is not null && virtualView is not null)
637+
{
638+
linearLayout.InvalidateMeasure(virtualView);
639+
}
634640
}
635641

636642
/// <summary>
@@ -662,6 +668,11 @@ void OnItemWidthChanged()
662668
{
663669
Refresh();
664670
}
671+
672+
if (viewMode == ViewMode.Linear && linearLayout is not null && virtualView is not null)
673+
{
674+
linearLayout.InvalidateMeasure(virtualView);
675+
}
665676
}
666677

667678
/// <summary>

0 commit comments

Comments
 (0)