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

iOS: ScrollView with height:Ti.UI.SIZE will not scroll in window with vertical layout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      SDK 3.0.2, iOS 6.1

      Description

      Problem description

      ScrollView does not scroll if Window layout is vertical and ScrollView height is set to Ti.UI.SIZE

      Steps to reproduce

      Use the following code:

      var win = Titanium.UI.createWindow({
      	layout:'vertical',
      	backgroundColor: 'white'
      });
       
      var scrollView = Titanium.UI.createScrollView({
        contentWidth:'auto',
        contentHeight:'auto',
        top:0,
        height: Ti.UI.SIZE
      });
       
      var label = Ti.UI.createLabel({
      	color: 'black',
      	text: 'Ciao',
      	top: 1000
      });
      scrollView.add(label);
       
      win.add(scrollView);
      win.open();
      

      If you remove either layout:'vertical' from the Window, or height:Ti.UI.SIZE from the ScrollView it scrolls fine. Either combination works fine in Android.

      Reproduced in the file scroll_views_basic.js in Kitchen Sink 3.0.2

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              mokesmokes Mark Mokryn
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration