Bug 31661 - Button Image is scaled incorrectly
Summary: Button Image is scaled incorrectly
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.4.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Stephane Delcroix
Depends on:
Reported: 2015-07-06 10:17 UTC by John Miller [MSFT]
Modified: 2015-07-20 04:48 UTC (History)
5 users (show)

Tags: AC iOS
Is this bug a regression?: ---
Last known good build:

Test Case (195.93 KB, application/zip)
2015-07-06 10:17 UTC, John Miller [MSFT]
iOS Actual Results (25.40 KB, image/png)
2015-07-06 10:17 UTC, John Miller [MSFT]
Android Actual Results (42.80 KB, image/png)
2015-07-06 10:17 UTC, John Miller [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description John Miller [MSFT] 2015-07-06 10:17:24 UTC
Created attachment 11878 [details]
Test Case


   An image assigned to the Image property of a Button has it's aspect scaled incorrectly on iOS.

**Steps to Reproduce:**

   1. Run the attached test project on an iOS simulator

**Actual Results:**

   The icon height is "squished" on iOS. See attached screenshot for iOS. 

**Expected Results:**

   Icon should fit properly, similar to Android (see attached Android image)

**Build Date & Platform:**

   XF 1.4.3
Comment 1 John Miller [MSFT] 2015-07-06 10:17:44 UTC
Created attachment 11879 [details]
iOS Actual Results
Comment 2 John Miller [MSFT] 2015-07-06 10:17:58 UTC
Created attachment 11880 [details]
Android Actual Results
Comment 3 noel.haydon 2015-07-10 18:13:00 UTC
It works as it properly when the button image exists outside of any layout.
Comment 4 Jason Smith [MSFT] 2015-07-14 09:31:24 UTC
Should be fixed in 1.4.4-pre1
Comment 5 Parmendra Kumar 2015-07-15 05:15:48 UTC
I have checked this issue with Xamarin.Forms 1.4.4-pre1 and I am still getting same behavior mentioned in bug description.

Screencast: http://www.screencast.com/t/L2gRXaRtGB

IDE Log: https://gist.github.com/Parmendrak/2a21cc3443644249bc32

Hence reopen this issue.

Environment info:
Xamarin Studio: 5.9.4 (build 5)
Mono 4.0.2 ((detached/c99aa0c)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.2 (6776)
Xamarin.iOS: (Enterprise Edition)
Xamarin.Android: (Enterprise Edition)
Mac OS X 10.9.4
Comment 6 Stephane Delcroix 2015-07-20 04:28:59 UTC
@Parmendra: I don't see the issue in your screencast. the aspect ratio of the image is right. the text is too long and ellipsized, that's not the issue at hand.
Comment 7 Parmendra Kumar 2015-07-20 04:48:10 UTC
Thanks @Stephane 

I have again checked this issue and observed that Button Image is scaled correctly.  

Hence closing this issue.