-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button with image not scaling to HeightRequest on iOS and Android #9734
Comments
You mention "Run the solution," which would indicate there is a reproduction project? Could you please link us the GitHub repo? Thank you! |
Hi @duindain. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Verified this issue with Visual Studio Enterprise 17.6.0 Preview 7.0. Repro on iOS platform with sample project. |
I ported this sample app to Xamarin.Forms and Android looks the same as in MAUI (IOW the large png is displayed at full size even though the button is much smaller than the image). My guess is that iOS will also render the same as in MAUI. |
iOS Simulators and Release on devices, button HeightRequest not working for me either, my setup: MAUI:
|
Description
Button with an image fails to correctly scale the source image to the size of the button this results in the full size image being displayed in Android and a skewed image in iOS
iOS
Android
WinUI
Steps to Reproduce
Create a new example Maui App
Add the following line of xaml to MainPage.xaml
Run the solution, works correctly in WinUI and results in the full sized image next to the button in Android and the image skewed and distorted but with the correct height in iOS
I expect this to correctly render the image in the button to the left of the text in the button using the heightrequest to scale down to the requested height maintaining the images aspect ratio, see WinUI example above where the image and button are rendered correctly
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
iOS 15.5, Android 33
Did you find any workaround?
Reduce the image size manually to be the correct size desired on a device
Relevant log output
No response
The text was updated successfully, but these errors were encountered: