原始数据冻结列失配 [英] Primefaces datatable frozen columns misallignment

查看:158
本文介绍了原始数据冻结列失配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个如图所示的数据表。有3个冻结的列和其余可滚动。冻结的列如图所示错位。如果冻结列属性被删除,则表格正确。任何解决问题的建议。



解决方案

在类似的用例中我们有同样的问题。
关于我的知识,这里没有很好的解决方案。



我们解决的最简单的方法是调整小型的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆