[TIMOB-8959] MobileWeb: Add support for ti.ui.defaultunit property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-26T20:09:25.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-05-02T16:56:59.000+0000 |
Updated | 2018-04-04T23:20:22.000+0000 |
Description
The tiapp.xml allows for a property called "ti.ui.defaultunit" that sets the default unit. Mobile web's default unit is pixels (px).
For more information about the ti.ui.defaultunit property, look at the Ti.UI.View documentation: http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.View
was this ever fixed in versions 3.x ? I am beginning to look into what it would take to change or set the default unit to dip. This is actually important enough to be me to announce a bounty if I need to :-) edit: when I generate a hello world classic titanium 3.x mobile web app I find this in index.html require("Ti/App/Properties", function(p) { p.setString("ti.ui.defaultunit","system"); }); Does that mean that mobile web is actually now using dip or that system is actually still px? I'm still looking into this. this might be a closable ticket.
yeah. you should be able to close this issue. system really does seem to behave correctly. However, I am on a retina MBP. This should not matter, but it is worth testing on a non rMPB
ti.ui.defaultunit is not supported by Titanium Mobile Web yet. We haven't scheduled this yet and we haven't done the research to see how we should handle the various unit types.
Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.