# Automatically Resize a TextField so that it's boundries don't go beyond it's text

**URL:** <https://forum.kirupa.com/t/automatically-resize-a-textfield-so-that-its-boundries-dont-go-beyond-its-text/240323>\
**Category:** Uncategorized\
**Created:** [October 2, 2007, 3:16am UTC](https://forum.kirupa.com/t/automatically-resize-a-textfield-so-that-its-boundries-dont-go-beyond-its-text/240323 "2007-10-02T03:16:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raven\_gm](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@raven\_gm](https://forum.kirupa.com/u/raven_gm)\
**Post date:** [October 2, 2007, 3:16am UTC](https://forum.kirupa.com/t/automatically-resize-a-textfield-so-that-its-boundries-dont-go-beyond-its-text/240323/1 "2007-10-02T03:16:56Z")

</div>

I’m using text fields for buttons right now, and I know how to set their length and width, but I was wondering if it was possible to dynamically resize them based on the text contained? (The buttons change, like Play/Pause but with more variation of length)

-Thanks
