Open Brosten opened 3 years ago
Yeah, I have the same issue. FillAndExpand does not work. By default Button is expanded to full width. The button wrapped by BadgeView has it's text width.
Having the same issue as well. Setting FillAndExpand on either the badge or its contents doesnt work
Version: 1.2.0 Platform tested: Android 11
The cause of this issue is probably this method.
However, changing this to LayoutOptions.Fill
caused a SIGSEGV error on Android 12, so you'll need to figure out a workaround.
Description
The badgeview makes HorizontalOptions of the control it surrounds out of order.
Steps to Reproduce
Try this <xct:BadgeView BackgroundColor="Red" FontAttributes="Bold" FontSize="Medium" TextColor="White" Text="1"> <Button Text="This label has a badge in the top-right" HorizontalOptions="FillAndExpand"/> </xct:BadgeView>
Expected Behavior
The button above should use the complete width of the badges parent.
Actual Behavior
The width of the button is set depending of the text on the button, not the horizontaloptions.
Basic Information
Workaround
Setting the WidthRequest of the button will do the trick, but I don't wan't to use that one since it's not flexible