I am using ComboBoxCellEditor in my NatTable.
When clicking on edited cell the editor first appears in left top corner of the table and then moves to right location.
It is not critical, but still would be nice to be avoided.
Is there any way to overcome it?
Hm, I'm running the examples on Windows 7 and got SWT 3.7.2 ... not sure if that is relevant.
What happens on opening an editor is that it gets created at position 0,0 and then the position and size is calculated and applied regarding the cell position. Not sure why in your case you are noticing that. Haven't seen or heard of that before.
That would mean to change the NatTable framework code. If you want to dig into that deeps, have a look at EditController.editCell(), but personally I don't want to change that code in the current architecture as there are a lot of use cases to verify and I'm not sure what breaks by changing it.
as the editing is the stuff I refactored a while ago, I have some passion that it works correctly.
So I was also digging into this and tried to find out what's going on.
The reason is that the ComboBoxCellEditor is opening the dropdown immediatelly on activation. That behaviour is intended, but it causes the jumping, as the NatCombo is positioning the dropdown below the Text, and at the activation time the Text is not positioned correctly.
The only solution I found was to use a little listener trick in the ComboBoxCellEditor. I'm adding a ControlListener to the Text control of the NatCombo that opens the dropdown and unregisteres itself immediately after that. It is activated once the Text control is resized or moved.
We moved our build to the new Nebula HIPP instance, so unfortunately there is no current SNAPSHOT build available. We hope to soon fix this. Till then it would be necessary to checkout the sources for testing.