Bug 28589 - iOS designer does not infer correct image size when only @2x images exist
Summary: iOS designer does not infer correct image size when only @2x images exist
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: unspecified
Hardware: All All
: Normal normal
Target Milestone: master
Assignee: Jose Medrano
URL:
Depends on:
Blocks:
 
Reported: 2015-03-31 10:25 UTC by Geir Sagberg
Modified: 2015-04-30 06:25 UTC (History)
5 users (show)

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

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:
Status:
RESOLVED FIXED

Description Geir Sagberg 2015-03-31 10:25:32 UTC
When targeting only Retina devices, we use only @2x image resources.

We would expect iOS Designer to infer the width and height of the image correctly, so e.g. icon@2x.png (64x64 px) should show as 32x32 in the designer, as it would if icon.png (32x32 px) existed. 

However, iOS Designer instead shows the image as 64x64 px.

This is only a design-time bug; in runtime the width and height is correct. Also, Xcode Interface Builder shows the correct size in design time.
Comment 1 Alan McGovern 2015-04-13 05:53:31 UTC
Jose, we have unit tests on this area of code, so we should be able to add another test mocking this scenario to make sure we do the right thing.
Comment 2 xamarin-release-manager 2015-04-30 06:25:11 UTC
Fixed in version 6.0.0.529 (xs6-libgit2)