Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16204

Android: ScrollView: App crashes while scrolling horizontally having views and webviews in scrollview

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.1
    • Component/s: Android
    • Environment:

      Description

      Android: ScrollView: App crashes while scrolling horizontally having views and webviews in scrollview
      This is regression. It is reproducible on SDK: 3.2.0.GA as well. It works fine on SDK:3.1.3.GA

      Steps to reproduce:
      1. Run the app.

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
      var scrollView = Titanium.UI.createScrollView({
      		    contentHeight : 'auto',
      		    layout : 'horizontal',
      		    horizontalWrap: 'false',
      		    backgroundColor : 'transparent',
      		    scrollType : 'horizontal'
      		});
      		  
      		//Add to scrollView
      		for (var i = 0; i < 20; i++) {
      		    scrollView.add(Titanium.UI.createView({
      		        height : 85,
      		        width : 50,
      		        backgroundColor : 'blue',
      		        left : 10,
      		        borderRadius : 6
      		    }));
      		  
      		}
      		  
      		//Add webView -- causes scrollView to scroll down
      		var webView = Ti.UI.createWebView({
      		    touchEnabled : false,
      		    showScrollbars : false,
      		    scrollType : 'vertical',
      		    willHandleTouches : false,
      		    backgroundColor : 'red',
      		    scrollable : false,
      		    left : 10,
      		    height : 40
      		});
      		  
      		scrollView.add(webView);
      		  
      		win.add(scrollView);
      		win.open();
      
      

      2. Scroll horizontally

      Expected:
      Should see a webView with red rectangle

      Actual:
      App crashes on scrolling

        Attachments

          Activity

            People

            • Assignee:
              ayeung Allen Yeung
              Reporter:
              pmishra Paras Mishra
              Reviewer:
              Ping Wang
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18204
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code