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

Android: ScrollView: More than one view on a scrollview shows up only one view

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium Studio: 2.1.0.201206151953
      Titanium SDK: 2.1.0.v20120615184153
      Android Device: Android 2.2, Android Tab (V3.2)
      Runtime: v8

      Description

      A scrollview that shows more than one view, does not show up correctly. It shows up only one view that spans the complete height of the screen.

      Regression. The issue does not occur on 2.0.2

      Steps to reproduce:
      1. Create an application with code below
      2. Launch application

      Actual: Only view 1 is shown on the screen and spans the complete height of the screen

      Expected: Two views should show up

      var _window = Ti.UI.createWindow({
      	backgroundColor:'#000'
      })
      var scrollview=Ti.UI.createScrollView({
       	 contentWidth: 'auto',
      		  contentHeight: 'auto',
      		  showVerticalScrollIndicator: true
       })
       var view = Ti.UI.createView({
      			layout : 'vertical',
      			width: 400,
      		  height: 'auto',
      			backgroundColor : 'green'
      		});
      scrollview.add(view);
      		var view1 = Ti.UI.createView({
      			layout : 'vertical',
      			backgroundColor : 'red',
      			height:'auto'
      		});
      		
      		var view2 = Ti.UI.createView({
      			layout : 'vertical',
      			backgroundColor : 'red',
      			height:'auto'
      		});
      		
      var label1 =  Ti.UI.createLabel({
      	text:"View1"
      })
      var label2 =  Ti.UI.createLabel({
      	text:"View2"
      })
      view1.add(label1);
      view2.add(label2);
      view.add(view1);
      view.add(view2);		
      _window.add(scrollview);
      _window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ngupta Neeraj Gupta
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code