flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
205 stars 88 forks source link

Stateful skin not working wich CanvasButtonAccordionHeader #194

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by doo...@gmail.com on 2009-01-27T17:57:25

What steps will reproduce the problem?

  1. Create a stateful skin mxml component (http://livedocs.adobe.com/flex/3/html/help.html?content=skinning_7.html)
  2. Create a css class that embeds the skin:

.myStyle { skin:ClassReference('path.to.your.SkinClass'); }

  1. Apply the skin to a CanvasButtonAccordionHeader using the styleName mxml tag

What is the expected output? What do you see instead? The skin should be applied, but the standard flex skin shows up instead.

What version of the product are you using? On what operating system? flexlib svn checkout, Revision 158 Windows Vista

Please provide any additional information below.

When applying the same skin to a CanvasButton, it works correctly. (See the attached testcase)

nicoulaj commented 13 years ago

Updated by ericmatt...@gmail.com on 2009-02-25T06:48:24

I ran into this problem as well. I also noticed that padding styles were not being applied in addition to the stateful skin not being applied.

nicoulaj commented 13 years ago

Updated by frode....@gmail.com on 2009-06-12T10:06:19

I think you have to use the other styles like selected-up-skin, disabled-skin...