Rows do not align properly under column headers in the Grid editor in GXt 2.2.3

I created an editor editor using GXT 2.2.3. Now the problem is that the rows do not align properly under the column heading, they move slightly to the left.

enter image description here

Please suggest how to solve this.

+3
source share
2 answers

I solved this by setting the registration and width of each column, as shown below:

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

We had problems aligning the column heading to ...

If you reinitialize your grid with reconfiure () calls, make sure the widget is attached to the DOM. If the widget is not connected, the column width calculations will be incorrect. I figured this out when debugging deeply within a GXT framework running in GWT dev mode.

In our case, we consider our mapping classes as singleton objects to speed up rendering. The alignment problem did not appear for the first time, only when the site was already visited again.

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

0
source

All Articles