0
votes

I have a celltable in my GWT application which have editable cells , when i click on any editable cell in my celltable , it bocomes editable + it also increase its size a lot..

Is there any way i can avoid this change of width of the editable cell when clicked ..hed

attached are two images , one before click on the cell and other after click on the cell .. can see the whole celltable width changes .. I want to avoid this and want to keep the size constant even after i click on the editable cell

enter image description here

After Click

1
Are you using a fixed-width layout for your CellTable? - Andrea Boscolo
I am usign something like this .. cellTable.setWidth("99%"); cellTable.setTableLayoutFixed(true); - junaidp
Try with 100%, and have a look at here, if you haven't already. - Andrea Boscolo
just changing to 100% , resolved the issue :) , thank You - junaidp

1 Answers

0
votes

Use a 100% fixed-layout table, either using

cellTable.setWidth("100%", true);

or

cellTable.setWidth("100%");
cellTable.setTableLayoutFixed(true);

Fixed-layout and column width is explained here.