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

Android: view with borderRadius inside a ScrollableView crashes the App

    Details

      Description

      Problem description

      When including a view that contains the property "borderRadius" in a ScrollableView, the app crashes.

      Steps to reproduce

      Create a scrollableView with a view containing the borderRadius property.
      App crashes when opening and scrolling through views.

      var win = Titanium.UI.createWindow();
      	win.backgroundColor = '#ccc';
      	
      	
      	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 view2 = Ti.UI.createView({
      		backgroundColor:'blue'
      	});
      	var l2 = Ti.UI.createLabel({
      		text:'Click Me (View 2 - see log)',
      		color:'#fff',
      		width:'auto',
      		height:'auto'
      	});
      	view2.add(l2);
      	
      	var view3 = Ti.UI.createView({
      		backgroundColor:'green',
      		borderRadius:00
      	});
      	var l3 = Ti.UI.createLabel({
      		text:'View 3',
      		color:'#fff',
      		width:'auto',
      		height:'auto'
      	});
      	view3.add(l3);
      	
      	var view4 = Ti.UI.createView({
      		backgroundColor:'black'
      	});
      	var l4 = Ti.UI.createLabel({
      		text:'View 4',
      		color:'#fff',
      		width:'auto',
      		height:'auto'
      	});
      	view4.add(l4);
      	
      	
      	var scrollView = Titanium.UI.createScrollableView({
      		views:[view1,view2,view3,view4],
      		showPagingControl:true,
      		pagingControlHeight:30,
      		maxZoomScale:2.0,
      		currentPage:1
      	});
      	
      	win.add(scrollView);
       
      win.open();
      

      Using TiSDK 2.1.4 GA the crash is immediate when launching the app.
      Using TiSDK latest 3.1 CI, the app starts but it crashes with the same exception message after scrolling through views a few times.

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              fcasali Federico Casali
              Reviewer:
              Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration