Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8959] MobileWeb: Add support for ti.ui.defaultunit property

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T20:09:25.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-05-02T16:56:59.000+0000
Updated2018-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

Comments

  1. Andrew McElroy 2014-01-12

    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.
  2. Andrew McElroy 2014-01-12

    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
  3. Chris Barber 2014-01-15

    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.
  4. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  5. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source