]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case and fix for #2341 - Reserve scrollbar space in tables with relative width
authorArtur Signell <artur.signell@itmill.com>
Fri, 19 Dec 2008 12:23:56 +0000 (12:23 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 19 Dec 2008 12:23:56 +0000 (12:23 +0000)
svn changeset:6299/svn branch:trunk

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

index ba99f2b270125682ffaabcc57b6f6d42def540ed..083855ca77e1173da9958e722bcfbdf54310a72c 100644 (file)
@@ -588,6 +588,7 @@ public class IScrollTable extends FlowPanel implements Table, ScrollListener {
                  * for a scrollbar we reserve this in the last column
                  */
                 int scrollbarWidth = getScrollbarWidth();
+                scrollbarWidth = Util.getNativeScrollbarSize();
                 if (relativeWidth && totalWidthR >= scrollbarWidth) {
                     scrollbarWidthReserved = scrollbarWidth + 1; // 
                     widths[tHead.getVisibleCellCount() - 1] += scrollbarWidthReserved;