summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAutomerge <automerge@vaadin.com>2012-05-16 09:07:19 +0000
committerAutomerge <automerge@vaadin.com>2012-05-16 09:07:19 +0000
commita9aeab18b267ea1bc8e454d01ce5adeea94f917d (patch)
tree54217049357804e37c83f00cef1aa8df264cc6a8 /src/com
parentd0e524428add4a5685a67ddcdccb6260e9b330f6 (diff)
downloadvaadin-framework-a9aeab18b267ea1bc8e454d01ce5adeea94f917d.tar.gz
vaadin-framework-a9aeab18b267ea1bc8e454d01ce5adeea94f917d.zip
[merge from 6.7] Rename illogical local variable
svn changeset:23752/svn branch:6.8
Diffstat (limited to 'src/com')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java b/src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java
index 225770b62b..97f5eb86fd 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java
@@ -85,10 +85,10 @@ public class DDUtil {
int offsetWidth = element.getOffsetWidth();
int fromLeft = clientX - elementLeft;
- float percentageFromTop = (fromLeft / (float) offsetWidth);
- if (percentageFromTop < leftRightRatio) {
+ float percentageFromLeft = (fromLeft / (float) offsetWidth);
+ if (percentageFromLeft < leftRightRatio) {
return HorizontalDropLocation.LEFT;
- } else if (percentageFromTop > 1 - leftRightRatio) {
+ } else if (percentageFromLeft > 1 - leftRightRatio) {
return HorizontalDropLocation.RIGHT;
} else {
return HorizontalDropLocation.CENTER;