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

MobileWeb: attempt to use ScrollView results in exception

    Details

      Description

      Reproduction steps:

      Create a View and a ScrollView.
      Add the View to the ScrollView.
      Add the ScrollView to a Window.

      (or run the attached project)

      Expected result:

      Empty window with ScrollView will be shown.

      Actual result:

      TypeError: Result of expression 'value' [undefined] is not an object.

      Additional information:

      This sample was copied form the Titanium documentation.
      SDK 3.1.0.v20130306185542.
      All works fine with SDK 3.0.2.GA.

      Code example:

      Titanium.UI.setBackgroundColor('#000');
       
      var win = Ti.UI.createWindow({
        backgroundColor: 'white',
        exitOnClose: true,
        fullscreen: false,
        title: 'ScrollView Demo'
      });
       
      var scrollView = Ti.UI.createScrollView({
        contentWidth: 'auto',
        contentHeight: 'auto',
        showVerticalScrollIndicator: true,
        showHorizontalScrollIndicator: true,
        height: '80%',
        width: '80%'
      });
       
      var view = Ti.UI.createView({
        backgroundColor:'#336699',
        borderRadius: 10,
        top: 10,
        height: 2000,
        width: 1000
      });
       
      scrollView.add(view);
      win.add(scrollView);
      win.open();

        Attachments

          Activity

            People

            • Assignee:
              bhughes Bryan Hughes
              Reporter:
              ypidstryhach_gl Yaroslav Pidstryhach
              Reviewer:
              Chris Barber
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration