]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Rename illogical local variable
authorAutomerge <automerge@vaadin.com>
Wed, 16 May 2012 09:07:19 +0000 (09:07 +0000)
committerAutomerge <automerge@vaadin.com>
Wed, 16 May 2012 09:07:19 +0000 (09:07 +0000)
svn changeset:23752/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/dd/DDUtil.java

index 225770b62be066514defb35ae2bdeb7e91858c89..97f5eb86fd9ab9e8c98a31b5cc1409f35fccd086 100644 (file)
@@ -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;