# Button class instance returns incorrect bounds

**URL:** https://forum.kirupa.com/t/button-class-instance-returns-incorrect-bounds/272073
**Category:** flash
**Created:** [October 1, 2008, 9:12pm UTC](https://forum.kirupa.com/t/button-class-instance-returns-incorrect-bounds/272073 "2008-10-01T21:12:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![forumSteve](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@forumSteve](https://forum.kirupa.com/u/forumSteve)
#### Post date: [October 1, 2008, 9:12pm UTC](https://forum.kirupa.com/t/button-class-instance-returns-incorrect-bounds/272073/1 "2008-10-01T21:12:09Z")

</div>

So, if you create an instance of the fl.controls.Button class and call the method getBounds or getRect, it returns a rectangle w:100, h:100 when I expect w:100, h:22.

I have a workaround by getting the bounds of the BitmapData, but I’m really just curious as to why the Button returns what it does.
