Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9476] iOS: Adding scrollable views to a scroll view stops the behavior of scroll-to-top by tapping on the status bar

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-05-07T07:18:09.000+0000
Affected Version/sRelease 2.0.2, Release 2.0.1
Fix Version/s2013 Sprint 10
ComponentsiOS
Labelsapi
ReporterNikhil Sharma
Assigneejithinpv
Created2012-06-08T17:06:20.000+0000
Updated2017-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();

Comments

  1. jithinpv 2013-05-07

    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
  2. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source