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

applicationDPI returns 0 with binding expression

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Specify applicationDPI using the bound variable.

      <?xml version="1.0" encoding="utf-8"?>
      <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.bug1HomeView"
      applicationDPI="

      {myDPI}

      ">
      <fx:Script>
      <![CDATA[
      [Bindable]
      private var myDPI:int = mx.core.DPIClassification.DPI_160;
      ]]
      >
      </fx:Script>

      </s:ViewNavigatorApplication>

      2. Get applicationDPI value at runtime.

      Actual Results: applicationDPI is 0.

      Expected Results: I guess this is NAB. Just binding expression doesn't work for applicationDPI. But returning 0 was a bit puzzling to me.

      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: