# TextButton::changeWidthToFitText & lnf

**URL:** <https://forum.juce.com/t/textbutton-changewidthtofittext-lnf/12582>\
**Category:** General JUCE discussion\
**Created:** [March 22, 2014, 8:48am UTC](https://forum.juce.com/t/textbutton-changewidthtofittext-lnf/12582 "2014-03-22T08:48:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [March 22, 2014, 8:48am UTC](https://forum.juce.com/t/textbutton-changewidthtofittext-lnf/12582/1 "2014-03-22T08:48:38Z")

</div>

Jules, would you be ok to add&nbsp;a&nbsp; virtual void changeTextButtonWidthToFitText (TextButton&) = 0;

in the&nbsp;Button::LookAndFeelMethods that&nbsp;TextButton::changeWidthToFitText() would call?

So that we could override it in our LnFs as we can do for the ToggleButton

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 22, 2014, 2:06pm UTC](https://forum.juce.com/t/textbutton-changewidthtofittext-lnf/12582/2 "2014-03-22T14:06:46Z")

</div>

Yes, that seems like a very sensible request!
