Description
*This is a regression from 5.5.1.GA*
When setting the height of a tableview to Ti.UI.SIZE and also setting the height of tableviewrows the tableview will be incorrectly sized.
var _window = Ti.UI.createWindow();
var table = Ti.UI.createTableView({
height: Ti.UI.SIZE,
width: Ti.UI.SIZE,
data: [{title: 'Test1', height: 75}, {title: 'Test2', height: 75} , {title: 'Test3', height: 75}, {title: 'Test4', height: 75}]
});
_window.add(table);
_window.open();
Steps to reproduce
Add the above code to an app.js
Build for Windows platform
Actual result
The tableview is sized to be the height of one tableviewrow
Expected result
The tableview should be sized to fit the whole screen
I was able to reproduce this. I would think this ticket as "Won't Fix" because this happens on iOS too, I see that TableView disappears on iOS. (We usually take iOS as "reference platform") We need to set
Ti.UI.FILL
in order to fit the whole screen in this case.Closing old "Won't fix" tickets. If you disagree, please reopen.