[TIMOB-13877] BlackBerry : Unable to scroll the scrollview till the last element or bottom
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-23T18:13:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0 |
Components | BlackBerry |
Labels | module_scrollView, qe-testadded, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Pedro Enrique |
Created | 2013-05-15T22:23:25.000+0000 |
Updated | 2013-09-24T08:16:05.000+0000 |
Description
This is a regression.
Description:
1. Create an app for BB with the following code:
var win = Titanium.UI.createWindow();
var scroll = Ti.UI.createScrollView({
backgroundColor: '#ccc',
width: Ti.UI.FILL,
height: Ti.UI.FILL,
layout: 'vertical',
});
function MyButton(title) {
return Ti.UI.createButton({
title: title,
top: 10
});
}
for(var i = 0; i < 100; i++) {
scroll.add(MyButton('Button #' + (i + 1)));
}
win.add(scroll);
win.open();
2. Build & run for BB simulator/device
3. After the app launches scroll till the bottom.
Actual Result:
1. You can't scroll till the bottom or till the 100th button in the code above.You can only scroll till the 9th button i.e the size of the phone screen
Expected result:
1. You should be able to scroll till the bottom
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/41
Pull request merged into master and back ported to 3_1_X
Reopening as still can reproduce it. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522151517 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
Tested with 3.1.1.v20130522190722 and it seems to work fine. Simulator: 10.1.0.1720 Lokesh you sure the selected SDK is correct? Recall I mentioned there might be a bug where the builder doesn't use the SDK version in the tiapp.xml file.
So figured out the issue is not with the scroll view not working but the layout crashes if we touch the scroll view before it has finished laying out the whole layout.Other wise the scroll view works as expected. Closing this issue & opening a new one for the layout. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522190722 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138