Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5508] MobileWeb: Not working scrollTo method in scrollView

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-05-20T04:47:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeAndrew Kulinich
Created2011-05-20T04:30:52.000+0000
Updated2017-03-09T20:09:22.000+0000

Description

The scrollView has to scroll to position(x:400,y:400) after clicking a button. Position in the view did not changed after button click.
win = Ti.UI.currentWindow;

var scrollView = Ti.UI.createScrollView({
left: 10,
top: 10,
width: 300,
height: 300,
backgroundColor: '#FFD'
})
var button = Ti.UI.createButton({
	left: 800,
	top: 800,
	title: 'button4',
	width: 100,
	height: 100
})
win.add(scrollView);
scrollView.add(button);

button.addEventListener('click',function(){
	scrollView.scrollTo(400,400);
	button.title = 'changed';
})

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source