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

Spark button skin is overly conservative about hiding it's label if the button is too narrow

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Spark: Button
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Run this:

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:Button width="25" label="X"/>
      <mx:Button y="50" width="25" label="X"/>

      </s:Application>

      Actual Results:
      Spark Button doesn't show it's label, but MX does.

      Expected Results:
      C'mon, there's plenty of room there to show "X"! Seriously though, this is fairly annoying because a little "X" button is the easiest way to prototype a "close" button.

      Workaround (if any):
      Reskin the Button and lower the left and right constraints on the "labelDisplay" component.

      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: