Rows are not aligned properly under the Column headers in EditorGrid in GXt 2.2.3

大城市里の小女人 提交于 2020-01-13 15:01:22

问题


I Created an EditorGrid using GXT 2.2.3.Now the problem is rows are not aligned properly under the column header,they are slightly move to left side.

Please suggest how to resolve this.


回答1:


I solved this by setting the padding and width of each column as below:

actioncolumn.setStyle("width:100%;");
actioncolumn.setStyle("padding-right:3px;");



回答2:


We've had problems with column header alignment before...

If you are re-initializing your grid with reconfiure() calls, make sure the widget is attached to DOM. If widget is not attached, column width calculations won't be correct. I realized this while debugging deep inside GXT framework running in GWT dev mode.

In our case we are treating our display classes as singleton objects to speed up rendering. The alignment issue did not appear the first time, only when revisiting the already rendered place.

See my post: https://coderwall.com/p/tuqi6a



来源:https://stackoverflow.com/questions/23146502/rows-are-not-aligned-properly-under-the-column-headers-in-editorgrid-in-gxt-2-2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!