[TIMOB-10588] iOS: ScrollableView - Label in a view added to a scrollable view changes position on orientation change.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-27T08:55:15.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | api, qe-ios082012 |
Reporter | Neha Chhabra |
Assignee | Shameer Jan |
Created | 2012-08-24T05:24:36.000+0000 |
Updated | 2017-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();
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
Closing ticket as the issue cannot be reproduced.