Red Hat Bugzilla – Bug 1277209
Double click on split table checkbox column shouldn't initiate item move
Last modified: 2016-07-05 03:50:43 EDT
Description of problem:
When using the SplitTable component with double click item moving enabled, the item is moved even when the double click occurs in a "checkbox" column with the purpose to (un)check the checkbox. Many times this "double" click is accidental and results in the item being moved to another table which requires manual correction.
The double click handler should probably be only registered on non-checkbox columns and not entire table row.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Look at any widget implemented using split table with double click moving and checkbox column: e.g Add Host Device dialog (vm tab -> host device sub tab -> add device)
2. Double click on checkbox "accidentally".
The item is moved to the second table.
Item should not be moved.
related to https://gerrit.ovirt.org/#/c/43726/ / bug 1099760, I assume.
(In reply to Einav Cohen from comment #2)
> related to https://gerrit.ovirt.org/#/c/43726/ / bug 1099760, I assume.
The implementation uses GWT "cell preview" handler that applies to all table cells (columns).
The fix should be easy since CellPreviewEvent#getColumn exposes the index of the target column.
verified in ovirt-engine-webadmin-portal-188.8.131.52-0.1.el7ev.noarch
oVirt 4.0.0 has been released, closing current release.