Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13351] iOS: ImageView height and width are ignored when images array is used (flipbook animation)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-04-15T23:10:14.000+0000
Affected Version/sRelease 3.0.2
Fix Version/sRelease 3.1.0, 2013 Sprint 08 API, 2013 Sprint 08
ComponentsiOS
Labelstriage
ReporterBart Seaman
AssigneeVishal Duggal
Created2013-02-08T02:39:26.000+0000
Updated2017-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

FileDateSize
214GA.png2013-04-03T20:29:30.000+000082172
iOS Simulator Screen shot Mar 13, 2013 1.23.28 PM.png2013-03-13T20:25:58.000+000096738

Comments

  1. Olga Romero 2013-03-13

    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
  2. Daniel Sefton 2013-04-03

    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.
  3. Vishal Duggal 2013-04-15

    Already fixed in 3.1.0
  4. Lee Morris 2017-03-23

    Closing ticket as duplicate with reference to the linked issues above.

JSON Source