List of usage examples for com.vaadin.client Util getNativeScrollbarSize
@Deprecated public static int getNativeScrollbarSize()
From source file:org.vaadin.tltv.multiscrolltable.client.ui.ContentPanel.java
License:Apache License
public int getMaxScrollPosition() { int sh = scrollPanel.getElement().getScrollHeight(); boolean hScrollbarVisible = scrollHandlerWidget.isHorizontalScrollbarVisible(); int sph = scrollPanel.getOffsetHeight() - (hScrollbarVisible ? Util.getNativeScrollbarSize() : 0); return sh - sph; }