[TIMOB-10597] iOS: Not scaling imageView when images property is assigned an array of images for animation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-16T21:12:43.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23 |
Components | iOS |
Labels | api, qe-port |
Reporter | Trevor Borgmeier |
Assignee | Vishal Duggal |
Created | 2012-08-14T22:25:00.000+0000 |
Updated | 2013-04-15T23:09:56.000+0000 |
Description
When an imageView is created with an "images" property, iOS no longer respects the width and height specified by the imageView. In my case the image is drawn much larger and off the screen. It may be rendering the image to it's actual size, rather than scaling it to the dimensions specified.
When the imageView specified a single image via the "image" property (non plural) iOS scales the image properly.
On android imageViews will render the correct dimensions when either the "image" or "images" property is called. (Android works properly)
Hi Trevor, Can you please provide a reproducible sample test case?
Here is a sample in context to how I'm using it.
Ti.API.info returns "[INFO] Loader Dimensions: 213.33333333333334 x 15.176151761517616" On iOS, the image appears to draw at full scale width:492,height:35 rather than the dimensions specified. I know it worked properly in an earlier version and it does work on android. Let me know if you want me to send you the images I'm using.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3379
Verified on: Studio: 3.0.1.201212181159 SDK: 3.1.0.v20130114171802 iOS Device: iPhone Simulator (v6.0), iPhone 4S (v5.1) XCode: 4.5.2