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

Button height for an icon-only button should not increase as fontSize changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Mobile: Button Skin
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. In a mobile project, use the following (provide your own icon):

      <fx:Script>
      <![CDATA[
      protected function button1_clickHandler(step:Number):void

      { vgroup.setStyle("fontSize", vgroup.getStyle("fontSize") + step); }

      ]]
      >
      </fx:Script>

      <s:VGroup id="vgroup">
      <s:Button icon="@Embed('icon_24x24.png')"/>
      <s:Button icon="@Embed('icon_24x24.png')" skinClass="spark.skins.spark.ButtonSkin"/>
      <s:Button label="-" click="button1_clickHandler(-2)"/>
      <s:Button label="+" click="button1_clickHandler(2)"/>
      </s:VGroup>

      2. Run
      3. Press the "+" button to increase font size

      Actual Results:
      The mobile button skin increases in height, the desktop button does not.

      Expected Results:
      No change in height when the label is empty.

      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: