Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Can't get height/width from new GridRow...

    Okay, this is absurd... Why can I not get the height or width from any of these components?

    Code:
    	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?

  • #2
    New Coder
    Join Date
    Apr 2008
    Location
    Makati Philippines
    Posts
    34
    Thanks
    0
    Thanked 1 Time in 1 Post
    what is your method of getting the height? by _height property?
    Hope is a good thing, maybe the best of things. And no good thing ever dies. -Andy Dufresne

    Jairus Bondoc PHP Programmer Philippines


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •