Neil wrote:
> Brian King wrote:
> 
>> 1) XUL Grid
>> - no concept of a header. Tried position: fixed/absolute, and various 
>> other things, but header columns then don't align with content columns
>> - columns size based on content, jiggle during row addition even when 
>> size set with fixed pixel widths.
> 
> Actually a grid has a broken concept of a header. It works something 
> like this:
> <grid>
>    <columns>
>       <column flex="1"/>
>       <column flex="1"/>
>    </columns>
>    <rows>
>       <row>
>          <label value="Left Header"/>
>          <label value="Right Header"/>
>       </row>
>       <rows style="overflow-y: scroll;">
>          <row>
>             <label value="Cell 1 Left"/>
>             <label value="Cell 1 Right"/>
>          </row>
>          <row>
>             <label value="Cell 2 Left"/>
>             <label value="Cell 2 Right"/>
>          </row>
> <!-- ... -->
>       </rows>
>    </rows>
> </grid>

Using this approach, the header seems disconnected from the rest of the 
list, not physically, but in respect of the columns not lining up.

-- 
Brian King
www.mozdev.org - free project hosting for the Mozilla community
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to