summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-05-19 14:56:16 +0300
committerAleksi Hietanen <aleksi@vaadin.com>2017-05-19 14:56:16 +0300
commitd7003aa96c1aed9ffefa35ff09679b3e602243fb (patch)
tree584891ac83fbcbacabe9096ffd64bb9449a833e3 /uitest
parent91e34500d7112f431c8d576c5992f63cbd1b4cd0 (diff)
downloadvaadin-framework-d7003aa96c1aed9ffefa35ff09679b3e602243fb.tar.gz
vaadin-framework-d7003aa96c1aed9ffefa35ff09679b3e602243fb.zip
Add style automatically to indicate that an element is being dragged (#9385)
Closes #9223
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java b/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java
index d842907c45..bf37cf0e82 100644
--- a/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java
+++ b/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java
@@ -123,13 +123,11 @@ public class DragAndDropCardShuffle extends AbstractTestUIWithLog {
// Add listeners
dragSource.addDragStartListener(event -> {
- event.getComponent().addStyleName("dragged");
log(event.getComponent().getValue() + " dragstart, effectsAllowed="
+ event.getEffectAllowed());
});
dragSource.addDragEndListener(event -> {
- event.getComponent().removeStyleName("dragged");
log(event.getComponent().getValue() + " dragend, dropEffect="
+ event.getDropEffect());
});
@@ -172,7 +170,7 @@ public class DragAndDropCardShuffle extends AbstractTestUIWithLog {
+ "padding-left: 10px;" + "color: red;" + "font-weight: bolder;"
+ "font-size: 25px;" + "background-color: gainsboro;" + "}");
styles.add(".v-label-drag-center {border-style: dashed;}");
- styles.add(".dragged {opacity: .4;}");
+ styles.add(".v-label-dragged {opacity: .4;}");
}
@Override