This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] [iOS] Button, ImageButton and RadioButton have a minimum height of 44px #11130
Labels
a/imagebutton
e/4 🕓
4
in-progress
This issue has an associated pull request that may resolve it!
p/iOS 🍎
t/bug 🐛
Projects
Milestone
Description
Button
,ImageButton
andRadioButton
have a minimum height of 44px on iOS.This value is hard-coded into the renderer and forces a minimum height.
Note: No minimum height is forced on other platforms including Android or UWP.
Steps to Reproduce
ImageButton
HeightRequest
.Expected Behavior
The button should renderer the same across all platforms.
Actual Behavior
The button image is not rendered properly. Why? See code excerpt below:
Xamarin.Forms/Xamarin.Forms.Platform.iOS/Renderers/ImageButtonRenderer.cs
Lines 13 to 43 in db45ed2
Basic Information
Workaround
Create a custom
ImageButtonRenderer
and override theSizeThatFits
method:If approved, I am happy to create a PR to fix this issue.
The text was updated successfully, but these errors were encountered: