Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24114] Windows: Incorrect size for tableview where height is set to Ti.UI.SIZE and rows have a set height

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2017-01-17T08:32:32.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sn/a
ComponentsWindows
Labelsqe-6.0.0, regression
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-11-08T11:00:54.000+0000
Updated2018-08-02T22:20:07.000+0000

Description

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

Comments

  1. Kota Iguchi 2017-01-17

    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.
  2. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source