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

DEMO - Button doesn't respect minWidth

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Create a button with a small label
      2. Set it's minWidth = 0

      Actual Results:

      Button is still fat

      Expected Results:

      Button isn't fat

      When you are creating a button that just has an icon, there's too much chrome. Attempting to reduce the chrome fails because the measure code in button overrides the user set values with what the skin wants the width to be, which uses UIComponent.DEFAULT_MEASURED_MIN_WIDTH, which can't be changed.

      Workaround:

      • Copy all the measure code in button into a subclass and change it
      • Create a new button skin that doesn't return UIComponent.DEFAULT_MEASURED_MIN_WIDTH
      • Create a new button class

      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: