Skip to content

Commit

Permalink
[Windows] Fixed the exception when using CarouselView PeekAreaInsets …
Browse files Browse the repository at this point in the history
…Property in OnSizeAllocated method (dotnet#26865)

* Fixed-26822 : Layout could not complete exception arise when using CarouselView PeekAreaInsets Property in OnSizeAllocated method

* updated CarouselViewHandler.Windows.cs

* Enabled testcases.
  • Loading branch information
Vignesh-SF3580 authored Jan 7, 2025
1 parent 68c7dc7 commit d45ee3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,8 @@ void InvalidateItemSize()
{
item.ItemHeight = itemHeight;
item.ItemWidth = itemWidth;

item.InvalidateMeasure();
}
ListViewBase.InvalidateMeasure();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if TEST_FAILS_ON_WINDOWS // This test fails on Windows due to app crash, Issue: https://github.com/dotnet/maui/issues/26822
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -21,5 +20,4 @@ public void ChangePeekAreaInsetsInOnSizeAllocatedTest()
App.WaitForElement("CarouselId");
}
}
}
#endif
}

0 comments on commit d45ee3e

Please sign in to comment.