Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16834] Blackberry Scrollable View does not work

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2014-01-30T19:18:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelsblackberry, look1
ReporterSteven Saracut
AssigneePedro Enrique
Created2014-01-30T00:47:10.000+0000
Updated2017-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();

Comments

  1. Sabil Rahim 2014-01-30

    this is invalid bug. Windows cannot be added to a scrollable view. Only Views are supported as children.
  2. Steven Saracut 2014-04-14

    Android and iOS support this since windows derive from a view... For BB that does not appear to be the case. Not really invalid.
  3. Pedro Enrique 2014-04-14

    If I may ask, why are you adding a windows to a view? (or scrollable view view)
  4. Lee Morris 2017-03-16

    Closing ticket as BlackBerry is no longer supported by us.

JSON Source