...

View Full Version : Can't get height/width from new GridRow...



gwfran
04-04-2008, 10:01 PM
Okay, this is absurd... Why can I not get the height or width from any of these components?



label = defaultLabel();
label.text = row.total.value;
gridItem = defaultGridItem();
gridItem.addChild(label);
gridRow.addChild(gridItem);


If I poll the height of the gridRow (or gridItem or label), I get a size of 0 even though I can see that it's rendering over 20 pixels high. The only thing I can guess is that adding the Child does not actually coordinate with the renderer to determine dimensions. However, I need the value prior to completing the layout of the rest of the table.

Ideas?

jairusbondoc
04-13-2008, 02:43 PM
what is your method of getting the height? by _height property?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum