[TIMOB-8268] iOS: Window - Setting the height and width to Ti.UI.SIZE does not shrink to content
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-26T09:21:26.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | look1, parity, qe-ios031912, qe-nfc |
Reporter | Wilson Luu |
Assignee | Vishal Duggal |
Created | 2012-03-24T09:41:59.000+0000 |
Updated | 2017-03-20T22:03:00.000+0000 |
Description
Steps to reproduce:
1. Run the following code:
var win = Ti.UI.createWindow({
backgroundColor:'black',
width:Ti.UI.SIZE,
height:Ti.UI.SIZE
});
var view = Ti.UI.createView({
backgroundColor:'white',
width:40,
height:40
});
win.add(view);
win.open();
Actual: The window does not shrink to fit the content like on Android. It behaves as if Ti.UI.FILL is still set. See attachments.
Expected: The window should shrink to fit the content.
Attachments
File | Date | Size |
---|---|---|
droid.png | 2012-03-24T09:41:59.000+0000 | 241347 |
ios.png | 2012-03-24T09:41:59.000+0000 | 16308 |
It does shrink to size. It is just that the window background color is the same as the default UI background Color. Run this code to verify.
Closing ticket as invalid.