[AC-4339] windows: scrollView doesn't work correctly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-08-10T17:16:26.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Zakhar Zhuravlev |
| Assignee | Shak Hossain |
| Created | 2016-08-08T06:53:57.000+0000 |
| Updated | 2016-08-10T17:16:26.000+0000 |
Description
Version: 5.4.0.v20160804185318
*index.js:*
var scrollView = Ti.UI.createScrollView({
top: 0,
left: 0,
right: 0,
bottom: 0,
scrollType: 'horizontal',
backgroundColor: 'yellow',
});
var view= Ti.UI.createView({
left: 0,
top: 0,
bottom: 0,
width: '1000dp',
backgroundColor: 'green',
});
scrollView.add(view);
$.win.add(scrollView);
$.win.open();
it seems that scroll view can't determine content size correctly.
Could you provide screenshots and give details of your expected results?
video: http://take.ms/o2iu1
you can see, that scroll view cuts content...var scrollView = Ti.UI.createScrollView({ top: 0, left: 0, right: 0, bottom: 0, scrollType: 'horizontal', backgroundColor: 'yellow', }); var view = Ti.UI.createView({ // image: '/icons/default.jpg', left: 0, top: 0, bottom: 0, width: '1000dp', backgroundColor: 'green', }); view.add(Ti.UI.createView({ top: 0, bottom: 0, width: '400dp', backgroundColor: 'blue', left: '100dp' })); scrollView.add(view); $.win.add(scrollView); $.win.open();It's working if set contentWidth of scrollView. But in 5.3.0 it's working without it, because of sometimes I don't know width of scrollview's content image.
Hello, Please test it on SDK 5.3.1.GA. Let us know if it still a problem or not.
Hello. 5.3.1.GA - working fine 5.4.0.v20160809033140 - working fine!!! So, it seems, you can close the ticket.