mutongwu 发表于 2013-2-7 22:26:42

设置Grid row 的高度

对GridPanel 的GridView添加以下配置
viewConfig:{                getRowClass:function(record,index,rowParams,store){                  return 'x-grid3-row mw-grid-row-height'                }            }
其中:x-grid3-row为默认设置。mw-grid-row-height为自定义设置的class名称:
.mw-grid-row-height{padding-top:10px;      /*          text-align:center;      */height:30px;}
由于 vertical-align的设置不起作用,只能使用padding属性来进行调整文字的‘居中’等位置。

对于 EditorGridPanel,如果同样嫌原有InputText不够高,可以给grid添加一个Id,并设置如下CSS
#attributeGrid .x-form-text{/* 调整字体的位置      padding-top:5px;*/height:20px !important;}
页: [1]
查看完整版本: 设置Grid row 的高度