Hello,

I have a datagrid I use to represent a shopping cart.  One of the
columns will contain a button used for deleting an item from the cart.
 The button is skinned with a custom graphic.  I have been able to get
the button into the column.  I did this by subclassing Button in
ActionScript, assigning a style to it representing the up, down, and
over skin, and am able to process clicks and perform the required
functionality.

The problem I have is that the icon stretches to fill the column.  I
want the icon for the button to remain fixed size and not stretch.  I
have tried everything I can think of and am clearly missing something.

Does this sound like the correct implementation approach?  If so, can
someone give me a pointer for how to solve this issue?  If not, can
someone suggest a better implementation for the item renderer to
achieve the same functionality.

Thanks in advance.




Reply via email to