File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
maui/src/Carousel/Platform/Android Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 12
12
using IList = System . Collections . IList ;
13
13
using Syncfusion . Maui . Toolkit . Carousel . Platform ;
14
14
using Rect = Android . Graphics . Rect ;
15
+ using Microsoft . Maui . Platform ;
15
16
16
17
namespace Syncfusion . Maui . Toolkit . Carousel
17
18
{
@@ -631,6 +632,11 @@ void OnItemHeightChanged()
631
632
{
632
633
Refresh ( ) ;
633
634
}
635
+
636
+ if ( viewMode == ViewMode . Linear && linearLayout is not null && virtualView is not null )
637
+ {
638
+ linearLayout . InvalidateMeasure ( virtualView ) ;
639
+ }
634
640
}
635
641
636
642
/// <summary>
@@ -662,6 +668,11 @@ void OnItemWidthChanged()
662
668
{
663
669
Refresh ( ) ;
664
670
}
671
+
672
+ if ( viewMode == ViewMode . Linear && linearLayout is not null && virtualView is not null )
673
+ {
674
+ linearLayout . InvalidateMeasure ( virtualView ) ;
675
+ }
665
676
}
666
677
667
678
/// <summary>
You can’t perform that action at this time.
0 commit comments