From 3f3682c8315a56f54f2e3260cd5b76741eca3d91 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 16 Aug 2011 10:03:49 +0000 Subject: [PATCH] Formatted source svn changeset:20410/svn branch:6.6 --- .../vaadin/terminal/gwt/client/ui/VScrollTable.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index a5411fa0e7..3200b197de 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -806,8 +806,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, if (BrowserInfo.get().isIE8() && !enabled) { /* - * The disabled shim will not cover the table body if it is - * relative in IE8. See #7324 + * The disabled shim will not cover the table body if it is relative + * in IE8. See #7324 */ scrollBodyPanel.getElement().getStyle() .setPosition(Position.STATIC); @@ -2578,7 +2578,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()) { @@ -5077,8 +5078,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, if (totalUndefinedNaturalWidths != 0) { // divide relatively to natural column widths newSpace = Math.round(w + (float) extraSpace - * (float) w - / totalUndefinedNaturalWidths); + * (float) w / totalUndefinedNaturalWidths); } else { newSpace = w; } @@ -5978,7 +5978,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, private boolean hasHorizontalScrollbar() { return scrollBody.getOffsetWidth() > scrollBodyPanel.getOffsetWidth(); } - + private boolean hasVerticalScrollbar() { return scrollBody.getOffsetHeight() > scrollBodyPanel.getOffsetHeight(); } -- 2.39.5