vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

Grid Edit row gets misaligned horizontally when tabbing out from a ComboBox while suggest box is open #11464

Open petrixh opened 5 years ago

petrixh commented 5 years ago

To make sure we can quickly validate and fix the bug, please provide as much as possible of the following information:

When the grid editor row is open and a user tabs out of a ComboBox that is close to the right edge, the editor cells get misaligned relative to the columns. The Save and Cancel buttons also get miss aligned when this happens.

Tracked it down to the case where the "suggest box" is open while the user presses the Tab-key and the Grid has to scroll horizontally in order to bring the next cell into view. Additionally, figured out that this happens because the ComboBox has a event.stopPropagation() in the client-side key handler. Tested as a workaround to add

if (event.getNativeKeyCode() != KeyCodes.KEY_TAB) { event.stopPropagation(); }

around it (line 2164-2166 in VComboBox in example code) which seems to fix the problem with Grid, however not sure what this will break elsewhere.

petrixh commented 5 years ago

step1 step2 step3 step4 grid-editor-combo-missalignment.zip

stale[bot] commented 5 years ago

Hello there!

We are sorry that this issue hasn't progressed lately. We are prioritizing issues by severity and the number of customers we expect are experiencing this and haven't gotten around to fix this issue yet.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

TatuLund commented 5 years ago

@petrixh have you tried GridEditorColumnFix, it has bunch of Editor column width issue fixing logic and could potentially remedy this issue also.

stale[bot] commented 4 years ago

Hello there!

We are sorry that this issue hasn't progressed lately. We are prioritizing issues by severity and the number of customers we expect are experiencing this and haven't gotten around to fix this issue yet.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!