Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7794] Android: TableViewRow - Inconsistency of screen color

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 1.8.1, Release 1.8.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and021312, reprod
ReporterTamila Smolich
AssigneeUnknown
Created2012-02-23T15:26:29.000+0000
Updated2018-03-06T18:57:57.000+0000

Description

Steps to reproduce: 1. Run code
var win=Ti.UI.createWindow();
var tableview=Ti.UI.createTableView({
	backgroundColor:'blue'
});
var tableviewrow=Ti.UI.createTableViewRow({
	height:'100%',
	backgroundColor:'red'
});
tableview.setData([tableviewrow]);
win.add(tableview);
win.open();
Expected result: Screen should be red Actual result: Screen is blue

Comments

  1. Ivan Skugor 2012-02-24

  2. Shameer Jan 2013-02-25

    The issue can be reproduced with release 3.0.2 and latest master version 3.1.0 . Tested on: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK version: 3.1.0 (25/02/2013) Titanium SDK version: 3.0.2 (25/02/2013) Device: Samsung galaxy s duos Android version: 4.0.4 If we replace "%" with any other unit (px,dip etc..) ,the problem becomes solved,and table view row height calculated 0 or undefined when "%" used.
  3. Biju pm 2013-12-02

    PR : - https://github.com/appcelerator/titanium_mobile/pull/5048
  4. Lee Morris 2017-07-11

    Reopening ticket as I am still able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source