Titanium JIRA Archive
Appcelerator Community (AC)

[AC-945] iOS: Layout with sizes specified as percentage not working after setting ti.ui.defaultunit

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-29T01:26:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsdefect, ios
ReporterSzymon Tomasz Stefanek
AssigneeShak Hossain
Created2014-12-10T02:57:14.000+0000
Updated2016-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).

Comments

  1. Shuo Liang 2014-12-10

    Hi, Please provide a test cast to reproduce your problem. That will be really helpful. Thanks. Regards, Shuo

JSON Source