[TIMOB-9534] iOS:ScrollView:'PagingControl' do not shows paging control of focussed view when window is over populated with views.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-06-22T21:41:00.000+0000 |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, qe-ios060112 |
Reporter | Shyam Bhadauria |
Assignee | Eric Merriman |
Created | 2012-06-14T03:03:56.000+0000 |
Updated | 2017-06-22T21:41:00.000+0000 |
Description
It is not a regression.It exists as far as 1.8.2 .
When the scrollview contains a number of views(24 for iphone and 60 for ipad),it moves out of screen and do not shifts on the screen even when focused.
Refer the code below:
var win=Titanium.UI.createWindow();
var view1 = Ti.UI.createView({
backgroundColor:'red'
});
var l1 = Ti.UI.createLabel({
text:'View 1',
color:'#fff',
width:'auto',
height:'auto'
});
view1.add(l1);
var scrollView = Titanium.UI.createScrollableView({
views:[view1],
showPagingControl:true,
pagingControlHeight:30,
maxZoomScale:2.0,
currentPage:0
});
win.add(scrollView);
win.addEventListener('open',function()
{
for(var i=0;i<24;i++)
{
var newView = Ti.UI.createView({
backgroundColor:'purple'
});
var l = Ti.UI.createLabel({
text:'View ' + (scrollView.views.length+1),
color:'#fff',
width:'auto',
height:'auto'
});
newView.add(l);
scrollView.addView(newView);
}
});
win.open();
Change the for condition when running on i-pad.Change 24 to around 60.
Steps to reproduce
1)Use the above code to make sample app and run it.
Expected result:
Even when the pagination count of views move out of window,the paging control of the focused view should be displayed on the screen.
Actual result:
The paging control of focused view remains out of screen.
Issue 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: 6.0
I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131