Titanium JIRA Archive
Alloy (ALOY)

[ALOY-361] Device Query formFactor overwrite

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2012-12-06T20:46:46.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sAlloy 0.3.4, 2012 Sprint 25
ComponentsXML
Labelsn/a
ReporterDavid Welch
AssigneeUnknown
Created2012-11-02T17:21:58.000+0000
Updated2018-03-07T22:26:08.000+0000

Description

I'm running the sample device_query app in the repo and when I run it on an iPad the texts says "iPhone". The ordering in the style sheet is such: "#osLabel[platform=ios formFactor=tablet]": { text: "iPad" }, "#osLabel[platform=ios formFactor=handheld]": { text: "iPhone" }, If I reverse it, it works: "#osLabel[platform=ios formFactor=handheld]": { text: "iPhone" }, "#osLabel[platform=ios formFactor=tablet]": { text: "iPad" },

Comments

  1. Tony Lukasavage 2012-12-06

    Resolved a bug with style prioritization as it relates to formFactor. This test case, and the relevant test apps in the github repository, all sort and apply styles properly now.

JSON Source