[Project_owners] how to align elements in richlistbox
joe ertaba
belaviyo at gmail.com
Tue Nov 11 07:30:31 PST 2008
Here are 2 solutions
first one is yours, but It still have problem :( I cant figure out why?
<grid>
<columns><column flex="1"/><column flex="1"/></columns>
<richlistbox style="display:-moz-grid-group; -moz-box-orient: vertical;" >
<richlistitem style="display:-moz-grid-line; -moz-box-orient:
horizontal;">
<label value="1"/>
<label value="2"/>
</richlistitem>
<richlistitem style="display:-moz-grid-line; -moz-box-orient:
horizontal;">
<label value="3"/>
<label value="4"/>
</richlistitem>
</richlistbox>
</grid>
This one seems to work but richlistitem is not directly a child !
<richlistbox>
<grid>
<columns ><column flex="1"/><column flex="1"/></columns>
<rows>
<richlistitem style="display:-moz-grid-line; -moz-box-orient:
horizontal">
<label value="1"/>
<label value="2"/>
</richlistitem>
<richlistitem style="display:-moz-grid-line; -moz-box-orient:
horizontal">
<label value="3"/>
<label value="4"/>
</richlistitem>
</rows>
</grid>
</richlistbox>
Any idea ?
On Tue, Nov 11, 2008 at 6:50 PM, joe ertaba <belaviyo at gmail.com> wrote:
>
>
> On Tue, Nov 11, 2008 at 5:41 PM, Neil Deakin <enndeakin at gmail.com> wrote:
>
>> joe ertaba wrote:
>>
>>> Hi
>>>
>>> I have found a solution , thanks both of you
>>>
>>> <richlistbox>
>>> <grid>
>>> <columns ><column flex="1"/><column flex="1"/></columns>
>>> <rows>
>>> <richlistitem style="display:-moz-grid-line; -moz-box-orient:
>>> horizontal">
>>> <label value="1"/>
>>> <label value="2"/>
>>> </richlistitem>
>>> <richlistitem style="display:-moz-grid-line; -moz-box-orient:
>>> horizontal">
>>> <label value="3"/>
>>> <label value="4"/>
>>> </richlistitem>
>>> </rows>
>>> </grid>
>>> </richlistbox>
>>>
>>> As richlistitem has to be a direct child of richlistbox, that won't
>> actually work.
>>
>
> But it seem that it works!
> I can select,... like normal
>
>
>>
>>
>> _______________________________________________
>> Project_owners mailing list
>> Project_owners at mozdev.org
>> https://www.mozdev.org/mailman/listinfo/project_owners
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081111/455971bd/attachment.html>
More information about the Project_owners
mailing list