please give a try with this test
<canvas>
<include href="incubator/roundrectbutton.lzx" />
<view x="50" y="50">
<simplelayout spacing="5" />
<roundrectbutton name="roundButton">hello</roundrectbutton>
<button>change text
<handler name="onclick">
if (parent.roundButton.text=='hello')
parent.roundButton.setAttribute("text","hello there");
else
parent.roundButton.setAttribute("text","hello");
</handler>
</button>
</view>
</canvas>
button text height is greater than the button height. And the width of
the button is not as expected, it returns to normalcy if I click the
"change text" button at least one time.
But button height is not changes anymore, have to set the height manually.
Regards
--
Cem SONMEZ