[TIMOB-13351] iOS: ImageView height and width are ignored when images array is used (flipbook animation)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-04-15T23:10:14.000+0000 |
Affected Version/s | Release 3.0.2 |
Fix Version/s | Release 3.1.0, 2013 Sprint 08 API, 2013 Sprint 08 |
Components | iOS |
Labels | triage |
Reporter | Bart Seaman |
Assignee | Vishal Duggal |
Created | 2013-02-08T02:39:26.000+0000 |
Updated | 2017-03-23T05:24:03.000+0000 |
Description
Platform: iOS
Device: iOS Simulator 6.1 & iPod Touch (4th gen, software version 6.1)
Repro:
1. Import Kitchen Sink
2. Make sure Titanium SDK 3.0.0.GA is selected in the Build Properties in tiapp.xml
3. Open Resources/ui/common/baseui/image_view_animated.js
4. Add height: 100 and width: 100 to createImageView param object
var imageView = Titanium.UI.createImageView({
images:images,
duration:100, // in milliseconds, the time before next frame is shown
repeatCount:0, // 0 means animation repeats indefinitely, use > 1 to control repeat count
top:0,
height: 100,
width: 100
});
Result: The image's rendered size is unchanged (though its position is affected)
Expected: The image's rendered size is 100x100
Regression:The example above works correctly in 2.1.4.GA
Attachments
File | Date | Size |
---|---|---|
214GA.png | 2013-04-03T20:29:30.000+0000 | 82172 |
iOS Simulator Screen shot Mar 13, 2013 1.23.28 PM.png | 2013-03-13T20:25:58.000+0000 | 96738 |
Added screen shot for this issue. Tested with: Titanium Studio, build: 3.0.3.201302201202 Titanium SDK, build: 3.0.0.GA KS 3_0_X branch
Tested and confirmed on iOS 6 simulator with Ti SDK 3.0.2 GA. Works as expected on 2.1.4 GA - screenshot of correct behavior added.
Already fixed in 3.1.0
Closing ticket as duplicate with reference to the linked issues above.