[TIMOB-9476] iOS: Adding scrollable views to a scroll view stops the behavior of scroll-to-top by tapping on the status bar
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-05-07T07:18:09.000+0000 |
Affected Version/s | Release 2.0.2, Release 2.0.1 |
Fix Version/s | 2013 Sprint 10 |
Components | iOS |
Labels | api |
Reporter | Nikhil Sharma |
Assignee | jithinpv |
Created | 2012-06-08T17:06:20.000+0000 |
Updated | 2017-03-17T18:46:57.000+0000 |
Description
If you add scrollable views to a scroll view, it stops the behavior of scroll-to-top by tapping on the status bar. In a scroll view without adding a scrollable view if you tap the status bar on the ios, the scroll view will scroll to the top.
Repo Steps
1. Run the below code in your app.js 2. Scroll the screen down and tap on the status bar. The screen won't scroll-to-top.
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var scrollView = Titanium.UI.createScrollView({
contentWidth:'auto',
contentHeight:'auto',
top:0,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:true,
backgroundColor: 'yellow'
});
var view = Ti.UI.createView({
backgroundColor:'#336699',
borderRadius:10,
width:300,
height:2000,
top:10
});
scrollView.add(view);
var view1 = Ti.UI.createView({ backgroundColor:'#123' });
var view2 = Ti.UI.createView({ backgroundColor:'#246' });
var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
var scrollableView = Ti.UI.createScrollableView({
views:[view1,view2,view3],
showPagingControl:true,
width:200,
height: 100,
top: 800
});
view.add(scrollableView);
win.add(scrollView);
win.open();
cannot reproduce Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
Closing ticket as the issue cannot be reproduced.