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

Incorrect fontSize applied when a mobile app with Button is compiled with reference to a custom Button skin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • MXML Compiler
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:
      1. Unzip attached project files
      2. Compile the application using airmobile config. Keep generated files
      $ mxmlc -keep +configname=airmobile MustellaButton.mxml

      3. Run the swf in adl with extra args:
      $ adl.exe -screensize 480x800:480x800 -profile mobileDevice -XscreenDPI 240 MustellaButton-app.xml

      Actual Results:
      The fontsize used on the buttons are smaller than expected.
      If you look inside the generated file _MustellaButton_Styles.as and see the fontsize used for global styles, fontSize=12.
      The fontsize set when dpi is 160 or 320 are also incorrect

      //global
      ...
      this.fontSize = 12;
      ....
      if (styleManager.acceptMediaList("(application-dpi:160)"))

      { this.focusThickness = 2; this.fontSize = 12; }

      if (styleManager.acceptMediaList("(application-dpi:320)"))

      { this.fontSize = 12; }

      Expected Results:
      expected fontSize is 24 for dpi=240, 16 for dpi=160, 32 for dpi=320

      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: