原始数据冻结列失配 [英] Primefaces datatable frozen columns misallignment
问题描述
在类似的用例中我们有同样的问题。
关于我的知识,这里没有很好的解决方案。
我们解决的最简单的方法是调整小型的tr的高度和每次重新绘制数据时(包括ajax事件,如排序等)。
另一种可能的方法是通过例如阻止线路断开。
We have a data table as shown in the image. There are 3 frozen columns and rest scrollable. The frozen columns are misalligned as shown. If frozen columns attribute is removed, the table looks properly. Any suggestions to solve the problem.
We have the same Problem in a similar use case. As to my knowledge there is no nice solution to this.
The easiest way, as we solved it, is to resize the heights of the smaller tr's and th's every time the datatable is redrawn (including ajax events like sorting etc.)
Another possible way would be to prevent different heights by e.g. stop the lines from breaking.
这篇关于原始数据冻结列失配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!