From 642b0adb2c4e078d766f6b5a4beac1b962dc7c91 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Wed, 24 May 2017 10:43:55 +0300 Subject: Fix drop indicator when Grid is scrolled (#9417) Now the DnD events are listened from tablewrapper element, which contains also grid's header and footer, making it possible to drop on top of them. --- .../src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src/main/java/com/vaadin') diff --git a/server/src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java b/server/src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java index e6af56d66d..aa80cdc7b8 100644 --- a/server/src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java +++ b/server/src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java @@ -87,8 +87,9 @@ public class GridDropEvent extends DropEvent> { * Get the location of the drop within the row. *

* NOTE: when dropped on an empty grid, or when {@link DropMode#ON_TOP} - * is used and the drop happened on empty space after last row, the location - * will be {@link DropLocation#EMPTY}. + * is used and the drop happened on empty space after last row or on top of + * the header / footer, the location will be + * {@link DropLocation#EMPTY}. * * @return Location of the drop within the row. * @see GridDropTarget#setDropMode(DropMode) -- cgit v1.2.3