Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
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