[TIMOB-1896] Android: Window width and height not respected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-08-16T01:21:17.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api |
Reporter | Paul Dowsett |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:04:57.000+0000 |
Updated | 2017-08-16T01:21:17.000+0000 |
Description
var winView1 = Ti.UI.createWindow({
backgroundColor:'#b1b1bd',
// borderRadius:5,
url:"view1.js",
modal: true,
// modal:false,
title: "View1",
width: 280,
height: 300
});
winView1.open();
view1.js
var win = Ti.UI.currentWindow;
var viewView1 = Ti.UI.createView({
backgroundColor: '#ffb1bd',
borderRadius:10,
top:10,
width:280,
height:280
});
win.add(viewView1);
Assigning to Don for triage.
Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, issue still valid.
On sdk 3.1, issue still valid. I believe that modal windows shoud respect width/height or at least margin.
Tried with the latest master and it seems working. Where is the margin defined in the sample code? Here is the code I tried var winView1 = Ti.UI.createWindow({ backgroundColor:'#b1b1bd', modal: true, title: "View1", width: 280, height: 300 }); winView1.open(); var viewView1 = Ti.UI.createView({ backgroundColor: 'red', borderRadius:10, top:10, width:80, height:280 }); winView1.add(viewView1); See the attached image
This is no longer occurring with the following environment; Studio 4.9.1.201707200100 Ti SDK 6.1.2 GA Appc CLI 6.2.3 Ti CLI 5.0.14 Alloy 1.9.13 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131