From 54e220b5a4ade7811dbaf8894ab005dfad650e00 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 16 Aug 2011 09:17:07 +0000 Subject: [PATCH] Corrected formatting svn changeset:20406/svn branch:6.7 --- .../terminal/gwt/client/ui/VScrollTable.java | 129 +++++++++--------- 1 file changed, 68 insertions(+), 61 deletions(-) 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(); } -- 2.39.5