]> source.dussan.org Git - vaadin-framework.git/commitdiff
new style name for whole table when drag is over it
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 23 Mar 2010 14:35:52 +0000 (14:35 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 23 Mar 2010 14:35:52 +0000 (14:35 +0000)
svn changeset:12045/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 4a4164004c8c1f2bb7d0277af05f77ce938828f8..5fd44c1d521a1c413d110fe29014ec5a477ecdce 100644 (file)
@@ -32,6 +32,7 @@ import com.google.gwt.user.client.ui.FlowPanel;
 import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.ScrollPanel;
+import com.google.gwt.user.client.ui.UIObject;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
@@ -3263,6 +3264,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         }
 
         private void deEmphasis() {
+            UIObject.setStyleName(getElement(), CLASSNAME + "-drag", false);
             if (lastEmphasized == null) {
                 return;
             }
@@ -3303,6 +3305,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                     return;
                 }
             }
+            UIObject.setStyleName(getElement(), CLASSNAME + "-drag", true);
         }
 
         @Override