Example usage for com.vaadin.client Util getNativeScrollbarSize

List of usage examples for com.vaadin.client Util getNativeScrollbarSize

Introduction

In this page you can find the example usage for com.vaadin.client Util getNativeScrollbarSize.

Prototype

@Deprecated
public static int getNativeScrollbarSize() 

Source Link

Usage

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;
}