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

Mobile Web: Exception in Titanium.UI.ScrollView.scrollTo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      MS Windows, Titanium Studio 3.0.0.201211202053, SDK 3.0.0, 3.0.2, Chrome simulator or a Webkit mobile browser

      Description

      Problem description
      Method Titanium.UI.ScrollView.scrollTo throws exception:

      "TypeError: Object [object Window] has no method '_setTranslation'".

      Test case

      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();
       
      scrollView.scrollTo(0, 0); //TypeError: Object [object Window] has no method '_setTranslation'

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              ypidstryhach_gl Yaroslav Pidstryhach
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration