[TIMOB-13389] Mobile Web: Exception in Titanium.UI.ScrollView.scrollTo
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-05-22T21:00:34.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | linvalid |
| Reporter | Yaroslav Pidstryhach |
| Assignee | Chris Barber |
| Created | 2013-01-11T06:32:47.000+0000 |
| Updated | 2018-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'
Resolving as "Won't Fix" as we no longer support MobileWeb at this time.
Closing as will not fix.