diff options
author | Automerge <automerge@vaadin.com> | 2012-05-16 09:07:19 +0000 |
---|---|---|
committer | Automerge <automerge@vaadin.com> | 2012-05-16 09:07:19 +0000 |
commit | a9aeab18b267ea1bc8e454d01ce5adeea94f917d (patch) | |
tree | 54217049357804e37c83f00cef1aa8df264cc6a8 /src | |
parent | d0e524428add4a5685a67ddcdccb6260e9b330f6 (diff) | |
download | vaadin-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')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java | 6 |
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; |