Consistent grid headers with Flexigrid ?

前端 未结 12 1065
长发绾君心
长发绾君心 2021-02-03 10:05

So I\'m trying to use the flexigrid plugin. It looks like it\'s going to work great aside from the fact that it looks like you have to manually set the column widths. Otherwis

12条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 10:52

    I had this problem as well. Here is my fix, and it works great. In flexigrid.js around line 678, change this line.

    $(tdDiv).css({textAlign:pth.align,width: $('div:first',pth)[0].style.width});
    

    to this

    $(tdDiv).css({textAlign:pth.align,width: $('div:first',pth).width() + "px"});
    

    And you are all set.

提交回复
热议问题