2 Replies Latest reply on Mar 6, 2007 10:31 AM by ebrentnelson

    Bug? Center Icon with text on button

    ebrentnelson Level 1
      I have been struggling with some button issues. I want to be able to have the icon always be the width of the horizontalGap away from the text.

      [========[X] Label========]

      I looked in Button.as and it looks like that is how it should work. But this is what I get and I can't figure out a way to fix it without adding paddingLeft (which is not what I want to do since the button width is dynamic):

      [=[X]=======Label========]

      It looks ridiculous and I think its either a bug or something is just wrong. I am pretty sure Flex 1.5 handled this correctly.

      Thanks.