Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28162] Android: TableViewRow does not scale to height of parent

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 9.3.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2020-10-05T01:12:16.000+0000
Updated2020-11-20T00:24:46.000+0000

Description

- Specifying Ti.UI.FILL or '100%' for TableViewRow.height does not scale to the parent TableView.height. *TEST*
const win = Ti.UI.createWindow({ backgroundColor: 'gray' });
const row = Ti.UI.createTableViewRow({
	height: Ti.UI.FILL,
	title: 'View should fill TableView parent',
	backgroundColor: 'red'
});
const table = Ti.UI.createTableView({
  backgroundColor: 'white',
  data: [ row ]
});

win.add(table);
win.open();
*EXPECTED* - TableViewRow scales to parent TableView _height_. *ACTUAL* - TableViewRow contents are scaled to zero and are hidden.

Comments

  1. Gary Mathews 2020-10-26

    master: https://github.com/appcelerator/titanium_mobile/pull/12029

JSON Source