-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] [Regression] UWP Button breaks the Layout #14764
Comments
This is a highly critical issue for us, most of our application doesn't render correctly with SR6 content that isn't visible, pages that do not react to window resizing, content that only renders when it feels like it - it is almost impressive that the sr6 bugfix for a button rendering issue has cause such massive application-wide issues. as for the button pressed/hovering issues, they were expected as the xaml code in xamarin forms was blank for those states. you can make your own override to work around that problem in the UWP project app.xaml file.
|
Hey @YZahringer thanks so much for the detailed report, appreciate it! I have a PR open that at least should fix the hover and selected state. Would you be able to test that as described here and let us know if this fixes this issue? That will greatly speed up the review process. @jsuarezruiz do you have any ideas on the resize bug? |
my 2 cents Looking at the PR changes, it seems that we've introduced a bit of a penalty on the ButtonRenderer which will try to find the element's parent for every single button, but that (if it is even noticeable) may be the current price to pay to get both the collection view stuff to work (as per the related bug) and not break the rest of the UI elements. |
Description
There are several regressions with the
Button
onUWP
afterXamarin.Forms 5.0.0.2012
:Breaking
: If theButton
is not initially visible, it breaks the layout/resize when it becomes visible.This regression is introduced by:
[UWP] Fix incorrect Button rendering inside CollectionView ItemTemplate #14598
UI Change
: No defaultHover
andPressed
animation color. Also different default margin/padding defined.This regression is introduced by:
[UWP] Fix Button Disabled VisualState #13148
[UWP] Fix broken disabled Button visual state #14567
Steps to Reproduce
Button
to a viewIsVisible=False
by defaultExpected Behavior
Button
works correctly with Hover/Pressed animation and does not break the layout/view.Actual Behavior
Layout view is break, no render/resize, until the
Button
go back toIsVisible=False
.No Hover/Pressed animation.
Basic Information
Environment
Show/Hide Visual Studio info
Screenshots
Xamarin.Forms 5.0.0.2012
Xamarin.Forms 5.0.0.2196
Reproduction Link
https://github.com/MADSENSE/Madsense.XamarinForms.Sample/tree/regression-uwp-button
Workaround
Layout Break
Hover/Pressed effect
No workaround found
The text was updated successfully, but these errors were encountered: