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

Android: Support FILL behavior on contentWidth/contentHeight property of scroll view

    Details

    • Story Points:
      1
    • Sprint:
      2017 Sprint 20 SDK, 2017 Sprint 21 SDK

      Description

      var win = Ti.UI.createWindow({
          backgroundColor:'white'
      });
       
      var scrollView =  Ti.UI.createScrollView({
          top:10,
          left:5,
          layout:'vertical',
          scrollType: 'vertical',
          contentHeight:Ti.UI.FILL
          // contentWidth:'auto'
      });
        
      var things = [
          'item1',
          'item2',
          'item3',
          'item4',
          'item5',
          'item6' ];
        
      for (var i = 0;  i < things.length;  i++) {
        
          var view = Ti.UI.createView({
              height: 140,
              width: 90,
              top: 10,
              left: 10,
              backgroundColor: '#CCC'
          });
        
          scrollView.add(view);
        
      };
       
      win.add(scrollView);
       
      win.open();
      

      Expected results:
      The contentHeight should be the size of the scroll view (which prevents it from scrolling)

      Actual results:
      The contentHeight follows SIZE behavior and is scrollable since the children's height is bigger than the scroll view height

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                ayeung Allen Yeung
                Reviewer:
                Gary Mathews
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration