# GridItem properties inaccurate?

**URL:** https://forum.kirupa.com/t/griditem-properties-inaccurate/265283
**Category:** Uncategorized
**Created:** [July 7, 2008, 1:27pm UTC](https://forum.kirupa.com/t/griditem-properties-inaccurate/265283 "2008-07-07T13:27:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JaggyGT](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@JaggyGT](https://forum.kirupa.com/u/JaggyGT)
#### Post date: [July 7, 2008, 1:27pm UTC](https://forum.kirupa.com/t/griditem-properties-inaccurate/265283/1 "2008-07-07T13:27:01Z")

</div>

This is an odd issue, but I’ve been stalled on it for a while. I have a GridItem that I’ve added to a Grid. According to the debugger, the gridItem has a width and height. However, whenever I try and set a variable equal to the width or height, the variable’s value is 0. Can you force an update on a display object or something that will cause the values to actually be what they say they are? I know that sounds odd, but I can’t figure it out for the life of me.

var x:Number = cell.width; // cell.width = 27 according to debugger.  
trace(x) -\> 0

Thanks in advance,  
John
