[TIMOB-16834] Blackberry Scrollable View does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-30T19:18:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | blackberry, look1 |
Reporter | Steven Saracut |
Assignee | Pedro Enrique |
Created | 2014-01-30T00:47:10.000+0000 |
Updated | 2017-03-16T20:22:20.000+0000 |
Description
Scrollable view just comes up with a white screen with correct title where iOS and Android appear to work fine.
I came across this problem while trying to display in a TabbedView. In the tabbed view it will just crash the app unless you put a title and width/height parameters into the window/scrollableview.
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'orange'
});
var label1 = Titanium.UI.createLabel({
color:'blue',
text:'I am Window 1',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win1.add(label1);
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'green'
});
var label2 = Titanium.UI.createLabel({
color:'red',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
var win3 = Titanium.UI.createWindow({
title:'win 3',
backgroundColor:'#fff'
});
var scrollableView = Ti.UI.createScrollableView({
views: [win1, win2],
showPagingControl:true
});
win3.add(scrollableView);
win3.open();
this is invalid bug. Windows cannot be added to a scrollable view. Only Views are supported as children.
Android and iOS support this since windows derive from a view... For BB that does not appear to be the case. Not really invalid.
If I may ask, why are you adding a windows to a view? (or scrollable view view)
Closing ticket as BlackBerry is no longer supported by us.