[AC-945] iOS: Layout with sizes specified as percentage not working after setting ti.ui.defaultunit
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-09-29T01:26:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | defect, ios |
Reporter | Szymon Tomasz Stefanek |
Assignee | Shak Hossain |
Created | 2014-12-10T02:57:14.000+0000 |
Updated | 2016-03-08T07:37:15.000+0000 |
Description
After setting ti.ui.defaultunit to "mm" in tiapp.xml the layouts using percentage sizes stopped working.
I had a horizontal layout with two child views, both specifying 50% as width. With ti.ui.defaultunit unset the layout is displayed properly. With ti.ui.defaultunit set to "mm" the centres of the child views are still in the same place but their width is wrong (far too small).
Hi, Please provide a test cast to reproduce your problem. That will be really helpful. Thanks. Regards, Shuo