Example usage for com.vaadin.client ComputedStyle getMarginWidth

List of usage examples for com.vaadin.client ComputedStyle getMarginWidth

Introduction

In this page you can find the example usage for com.vaadin.client ComputedStyle getMarginWidth.

Prototype

public double getMarginWidth() 

Source Link

Document

Returns the sum of the left and right margin.

Usage

From source file:com.haulmont.cuba.web.toolkit.ui.client.suggestionfield.CubaSuggestionFieldWidget.java

License:Apache License

protected static double getMarginBorderPaddingWidth(Element element) {
    final ComputedStyle s = new ComputedStyle(element);
    return s.getMarginWidth() + s.getBorderWidth() + s.getPaddingWidth();
}