Example usage for com.google.gwt.query.client.plugins UiPlugin contains

List of usage examples for com.google.gwt.query.client.plugins UiPlugin contains

Introduction

In this page you can find the example usage for com.google.gwt.query.client.plugins UiPlugin contains.

Prototype

public static boolean contains(Element parent, Element descendant) 

Source Link

Document

Return true if the descendant is a child of the parent.

Usage

From source file:gwtquery.plugins.draggable.client.DraggableHandler.java

License:Apache License

private boolean isOffsetParentIncludedInScrollParent() {
    assert helperOffsetParent != null && helperScrollParent != null;
    return !"html".equalsIgnoreCase(helperScrollParent.get(0).getTagName())
            && UiPlugin.contains(helperScrollParent.get(0), helperOffsetParent.get(0));
}