[TIMOB-5508] MobileWeb: Not working scrollTo method in scrollView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-20T04:47:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Andrew Kulinich |
Created | 2011-05-20T04:30:52.000+0000 |
Updated | 2017-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';
})
Closing ticket as fixed.