我有一个标准的单元格编辑器,当我处于编辑模式时,单元格编辑器的宽度和高度不是单元格的完整宽度和高度。
我应该覆盖样式还是配置中有任何标志可以关闭此效果?
我也有同样的问题。如果您查看 DOM,您会发现ag-grid在所有自定义编辑器周围添加了一个包装器 div,而实际上该 div 才是问题所在。我通过将其添加到我的全局 CSS 中解决了这个问题:
.ag-react-container {
/*
* This class is used on divs automatically inserted by AgGrid around custom cell editors.
* Without this, I don't know of another way of ensuring that the underlying <input> can take
* up 100% of the height of the parent cell, if it so chooses to.
*/
height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2131 次 |
| 最近记录: |