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

[spark_skins] Button does not resize to fit icon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • mx: Button
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile & run:
      <?xml version="1.0" encoding="utf-8"?>
      <FxApplication xmlns="http://ns.adobe.com/mxml/2009" >
      <layout>
      <VerticalLayout/>
      </layout>
      <Script>
      <![CDATA[
      [Bindable]
      [Embed(source="disabledIcon.gif")]
      public var digif:Class;

      ]]
      >
      </Script>

      <Button id="btn" icon="

      {digif}

      " />
      <Label text="

      {'height: ' + btn.height + ', width: ' + btn.width}

      "/>
      </FxApplication>

      Actual Results:
      Button height is 31 width 70 - icon does not fit inside Button

      Expected Results:
      Before Spark skins, button height would report back as 35 and width 70 and icon would fit inside Button.

      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: