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

Android: Add "contentSize" property to Ti.UI.ScrollView "scroll" event

    Details

    • Story Points:
      5

      Description

      Parity for contentSize inside the scroll event of a ScrollView. iOS has this since 5.2.0.

      Example:

       
      var win = Ti.UI.createWindow({backgroundColor: '#fff'});
      var view1 = Ti.UI.createView({width:20,height:1020,backgroundColor:"#f00",top:0});
      var scrollView = Ti.UI.createScrollView({height:Ti.UI.FILL,width:Ti.UI.FILL});
      var ldi = Ti.Platform.displayCaps.logicalDensityFactor;
      scrollView.addEventListener("scroll",function(e){
      	console.log("contentSize", e.contentSize);
      })
      win.add(scrollView);
      scrollView.add(view1);
       
      win.open();
      

      Will output height: 1020 (height of the red view) and your screen width.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              michael Michael Gangolf
              Tester:
              Ebenezer Boateng
            • Watchers:
              5 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