[Project_owners] Grids

Onno Ekker o.e.ekker at gmail.com
Thu Jul 3 07:44:36 PDT 2008


On Thu, Jul 3, 2008 at 3:14 PM, Neil <neil at parkwaycc.co.uk> wrote:

> Onno Ekker wrote:
>
>  I have in my xul two grids with two columns each, both in a seperate
>> groupbox. I'd like both columns of both grids to have the same width, but I
>> can't seem to find the width of the current columns.
>>
>>  nodelist = document.getElementsByTagName('row');
>>  for (var i = 0; i < nodelist.length; i++) {
>>    var width1 = nodelist[i].firstChild.boxObject.width; dump(width1);
>>    var width2 = nodelist[i].lastChild.boxObject.width; dump(width2);
>>  }
>>
>> width1 and width2 are always 0.
>>
>
> I can't see why that might be but did you try looking at the box objects of
> the <column> elements?


No, I tried looking at the row elements.
DOM looks like this (from the top of my head):
<grid>
<columns><column/><column/></columns>
<rows>
<row><label value label=.../><label value=.../></row>
...
</rows>
</grid>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20080703/9a2272cf/attachment.html>


More information about the Project_owners mailing list