Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26456

@media (application-dpi) query should evaluate to false on Desktop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: Density
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Create a button, set it's styleName to "buttonStyle" and specify the following style block:

      <fx:Style>
      @namespace s "library://ns.adobe.com/flex/spark";
      @namespace mx "library://ns.adobe.com/flex/mx";
      .buttonStyle

      { chromeColor: #990000; }

      @media (application-dpi)
      {
      .buttonStyle

      { chromeColor: #009900; }

      }
      </fx:Style>

      Actual Results:
      Button has chrome color green.

      Expected Results:
      The query should evaluate to false since application-dpi is a mobile only feature, and the button should have chrome color red.

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: