Hi,

Does anyone know how to adjust row height of tapestry grid component ?

I searched and not finding anything on this.

I have such a usage...

        <div class="t-beaneditor" style="row-height: 200px;">
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor"/>
            <br/>
            <div class="t-beaneditor-row" style="height: 200px;">

...


I am currently listing a bunch of images but they vary in height and it looks 
very out of control.

I tried implementing a grid override but to no avail

    private void doGridOverride(MarkupWriter writer) {
        writer.write(NEWLINE);
        writer.write("\ttable.t-data-grid    {");

        writer.write(NEWLINE);
        writer.write("\t\twidth: 130px;");
        writer.write(NEWLINE);        
        writer.write("\t}");             
            
        writer.write(NEWLINE);
        writer.write("\ttable.t-data-grid th a    {");
        writer.write(NEWLINE);        
        writer.write("\t\ttext-decoration: none; text-shadow: 0px -1px 0px 
#4D5F99;");
        writer.write(NEWLINE);        
        writer.write("\t}");

        writer.write(NEWLINE);
        writer.write("\ttable.t-data-grid thead tr {");
        writer.write(NEWLINE);        
        writer.write("\t\tfilter: 
progid:DXImageTransform.Microsoft.gradient(startColorstr='#8DA9FF', 
endColorstr='#738FE6');");
        writer.write(NEWLINE);    
        writer.write("\t\tbackground: -webkit-gradient(linear, left top, left 
bottom, from(#8DA9FF), to(#738FE6));");
        writer.write(NEWLINE);    
        writer.write("\t\tbackground: -moz-linear-gradient(top, #8DA9FF, 
#738FE6);");
        writer.write(NEWLINE);
        writer.write("\t\tline-height: 20px;");
        writer.write(NEWLINE);        
        
        writer.write("\t}");        
    }
thanks

Ken
                                          

Reply via email to