Skip to content

Commit

Permalink
Merge pull request #49 from Choza-rajan/CarouselLinearImages
Browse files Browse the repository at this point in the history
Carousel linear mode dynamic image changes committed
  • Loading branch information
PaulAndersonS authored Dec 5, 2024
2 parents eef59b0 + 3e6a339 commit 4052e98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions maui/src/Carousel/Platform/Android/PlatformCarousel.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using IList = System.Collections.IList;
using Syncfusion.Maui.Toolkit.Carousel.Platform;
using Rect = Android.Graphics.Rect;
using Microsoft.Maui.Platform;

namespace Syncfusion.Maui.Toolkit.Carousel
{
Expand Down Expand Up @@ -631,6 +632,11 @@ void OnItemHeightChanged()
{
Refresh();
}

if (viewMode == ViewMode.Linear && linearLayout is not null && virtualView is not null)
{
linearLayout.InvalidateMeasure(virtualView);
}
}

/// <summary>
Expand Down Expand Up @@ -662,6 +668,11 @@ void OnItemWidthChanged()
{
Refresh();
}

if (viewMode == ViewMode.Linear && linearLayout is not null && virtualView is not null)
{
linearLayout.InvalidateMeasure(virtualView);
}
}

/// <summary>
Expand Down

0 comments on commit 4052e98

Please sign in to comment.