View Full Version : Incorrect EditField Position in Grid when columns are hidden

8 Feb 2012, 6:58 AM
today I found a bug which shows up when you try editing a cell value on a Grid which was made editable using GridInlineEditing and columns of the grid are hidden. The problem here is, that the method doStartEditing() of the class GridInlineEditing calculates the left position of the editing field by adding up all column widths upto the cell where the edit widget shall be shown. But it does not honor any hidden columns. This will lead to misplaced edit widgets with an offset to the right.

If you want to see this bug in action try the following:
1. Visit http://www.sencha.com/examples-dev/#ExamplePlace:inlineeditablegrid
2. Hide the "Name" column by clicking the arrow on the right side of any column header and then deselecting the Name column
3. Now edit a field of the Indoor column.
4. Now you will see that the edit widget which shows up will be misplaced to the right by the width of the hidden "Name" column

Best regards,

8 Feb 2012, 7:59 AM
I have reported this bug as well and provided a patch. I have yet to, however, get any feedback on if this patch is valid and will be applied.

http://www.sencha.com/forum/showthread.php?176227-When-Column-in-Grid-is-hidden-editor-doesn-t-adjust (http://www.sencha.com/forum/showthread.php?176227-When-Column-in-Grid-is-hidden-editor-doesn-t-adjust)