Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13389] Mobile Web: Exception in Titanium.UI.ScrollView.scrollTo

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-22T21:00:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelslinvalid
ReporterYaroslav Pidstryhach
AssigneeChris Barber
Created2013-01-11T06:32:47.000+0000
Updated2018-04-04T23:20:34.000+0000

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'

Comments

  1. Lee Morris 2017-05-22

    Resolving as "Won't Fix" as we no longer support MobileWeb at this time.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source