Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10588] iOS: ScrollableView - Label in a view added to a scrollable view changes position on orientation change.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-27T08:55:15.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsapi, qe-ios082012
ReporterNeha Chhabra
AssigneeShameer Jan
Created2012-08-24T05:24:36.000+0000
Updated2017-03-16T18:46:40.000+0000

Description

Label in a view added to a scrollable view changes position on orientation change. This is not a label.This occurs as far as on 2.0.1 Steps to Reproduce: 1. Install and launch the app. 2.Rotate the device in other orientations. Expected Result: The position of the label should remain same in all the orientation. Actual Result: The position of the label changes in other orientation. app.js
      var _window = Ti.UI.createWindow({});
      	


		var vImageLegend = Ti.UI.createView({
			height : 'auto',
			layout : 'vertical',
			backgroundColor : '#E6E6E6',
		});
		

		var lLegend = Ti.UI.createLabel({
			height : 'auto',
			text : 'image[0].image_legend',
		});
		vImageLegend.add(lLegend);

		// If more images than 1, create scrollable view
		var ScrollableView = Ti.UI.createScrollableView({
			views : [vImageLegend],
			showPagingControl : true,
			pagingControlHeight : 30,
			pagingControlColor : '#899DA2',
			currentPage : 0,
			top : 50,
			left : 0,
			height : 'auto',
			// height: 250,
		});
		_window.add(ScrollableView); 
		
	_window.open();

Comments

  1. Shameer Jan 2013-03-27

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 5.1,6.0
  2. Lee Morris 2017-03-16

    Closing ticket as the issue cannot be reproduced.

JSON Source