Word-wrap grid cells in Ext JS

后端 未结 6 1829
野性不改
野性不改 2020-12-24 12:17

(This is not a question per se, I\'m documenting a solution I found using Ext JS 3.1.0. But, feel free to answer if you know of a better solution!)

The Colu

6条回答
  •  长发绾君心
    2020-12-24 12:42

    Not a "better solution", but a similar one. I recently needed to allow ALL cells in every grid to wrap. I used a similar CSS-based fix (this was for Ext JS 2.2.1):

    .x-grid3-cell-inner, .x-grid3-hd-inner {
      white-space: normal; /* changed from nowrap */
    }
    

    I didn't bother with setting a style on the td, I just went right for the cell class.

提交回复
热议问题