[TIMOB-7794] Android: TableViewRow - Inconsistency of screen color
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 1.8.1, Release 1.8.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and021312, reprod |
Reporter | Tamila Smolich |
Assignee | Unknown |
Created | 2012-02-23T15:26:29.000+0000 |
Updated | 2018-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
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.
PR : - https://github.com/appcelerator/titanium_mobile/pull/5048
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