Ok than it is better to create an issue.
Thanks
30.04.2020 05:59 tarihinde Alex Harui yazdı:
Mx:Button should work like it did in Flex. Might be a pixel or two
difference, but mostly the same.
-Alex
*From: *serkan <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>,
"[email protected]" <[email protected]>
*Date: *Wednesday, April 29, 2020 at 7:18 PM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: About the label on button
Reminder.
29.04.2020 14:10 tarihinde serkan yazdı:
Hi,
I have three questions may be someone have time can help.
1. What should be the default behavior of the button with label,
should extend width according to label width or two line button ?
current is two line button.
sample :
<mx:Button id="statuFilterButton"
label="Select Filter" click="createAndShow();"/>
2. When setting width according to label length; gives WARNING in
compiler and exception in console but displays well, should i
disregard ?
sample :
<mx:Button id="statuFilterButton"
width="{statuFilterButton.label.length}" label="Select Filter"
click="createAndShow();"/>
obj is string which is "Select Filter".
3. I have to get label from resources so it is dynamic. Or any
other suggestions to calculate the width and set ?
Thanks,
Serkan