]> source.dussan.org Git - vaadin-framework.git/commitdiff
improved floating headers positioning
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 9 Jul 2007 06:37:40 +0000 (06:37 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 9 Jul 2007 06:37:40 +0000 (06:37 +0000)
svn changeset:1818/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/scrolltable/IScrollTable.java

index f013cfce1af6a9bb8390460b0fd451f15fba89af..2294447ed86b0b75d35b5885644de6758680e3ce 100644 (file)
@@ -564,9 +564,10 @@ public class IScrollTable extends Composite implements Paintable, ITable, Scroll
                }
                
                private void updateFloatingCopysPosition(int x, int y) {
+                       x -= DOM.getIntAttribute(floatingCopyOfHeaderCell, "offsetWidth")/2;
                        DOM.setStyleAttribute(floatingCopyOfHeaderCell, "left", x + "px");
                        if(y > 0)
-                               DOM.setStyleAttribute(floatingCopyOfHeaderCell, "top", y + "px");
+                               DOM.setStyleAttribute(floatingCopyOfHeaderCell, "top", (y + 7) + "px");
                }
                
                private void hideFloatingCopy() {