aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-05-24 10:43:55 +0300
committerGitHub <noreply@github.com>2017-05-24 10:43:55 +0300
commit642b0adb2c4e078d766f6b5a4beac1b962dc7c91 (patch)
treefaabc66ebc48a468a61a95e4b9c94cd1dde64d45 /server/src/main/java/com/vaadin
parent00adf36ec3502634a87419bd5485e1c883a98f21 (diff)
downloadvaadin-framework-642b0adb2c4e078d766f6b5a4beac1b962dc7c91.tar.gz
vaadin-framework-642b0adb2c4e078d766f6b5a4beac1b962dc7c91.zip
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.
Diffstat (limited to 'server/src/main/java/com/vaadin')
-rw-r--r--server/src/main/java/com/vaadin/ui/components/grid/GridDropEvent.java5
1 files changed, 3 insertions, 2 deletions
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<T> extends DropEvent<Grid<T>> {
* Get the location of the drop within the row.
* <p>
* <em>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}.</em>
+ * 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}.</em>
*
* @return Location of the drop within the row.
* @see GridDropTarget#setDropMode(DropMode)