[Android][iOS] Changing Padding
from SizeChanged
handler doesn't update the layout
#13351
Labels
difficulty/challenging 🤯
Categorizes an issue for which the difficulty level is reachable with internals understanding
kind/bug
Something isn't working
platform/android 🤖
Categorizes an issue or PR as relevant to the Android platform
platform/ios 🍎
Categorizes an issue or PR as relevant to the iOS platform
project/layout 🧱
Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Current behavior
This is a followup to #7978 with runtime tests being added in #13263. The original problem with Padding and SizeChanged was that PaddingProperty didn't have AffectsMeasure, which fixed the issue on the other platforms, but on iOS and Android, the Panel still doesn't update its layout despite the fact that the IsMeasureDirty flag is true.
Expected behavior
Panels should update their layouts when Padding changes (and specifically in SizeChanged).
How to reproduce it (as minimally and precisely as possible)
Check out the runtime tests at #13263
Workaround
Manually call panel.InvalidateMeasure() (and then possibly panel.UpdateLayout())
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
Android, iOS
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: