From: Artur Signell Date: Tue, 16 Aug 2011 09:17:07 +0000 (+0000) Subject: Corrected formatting X-Git-Tag: 6.7.0.beta1~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=54e220b5a4ade7811dbaf8894ab005dfad650e00;p=vaadin-framework.git Corrected formatting svn changeset:20406/svn branch:6.7 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index d4e09ba1a9..81f8a3d8b2 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -2693,7 +2693,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, columnTotalWidth += w.getOffsetWidth(); } - if (cell == lastcell && columnSelector.getOffsetWidth() > 0 + if (cell == lastcell + && columnSelector.getOffsetWidth() > 0 && columnTotalWidth >= div.getOffsetWidth() - columnSelector.getOffsetWidth() && !hasVerticalScrollbar()) { @@ -4041,14 +4042,15 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, private void unlinkRowAtIndex(int index) { final VScrollTableRow toBeRemoved = (VScrollTableRow) renderedRows - .get(index); + .get(index); // Unregister row tooltip - client.registerTooltip(VScrollTable.this, toBeRemoved.getElement(), null); - for(int i=0; i scrollBodyPanel.getOffsetWidth(); } - + private boolean hasVerticalScrollbar() { return scrollBody.getOffsetHeight() > scrollBodyPanel.getOffsetHeight(); }