Search in sources :

Example 1 with Point

use of com.extjs.gxt.ui.client.util.Point in project activityinfo by bedatadriven.

the class IndicatorGridPanel method getRowY.

public int getRowY(IndicatorDTO indicator) {
    int rowIndex = grid.getStore().indexOf(indicator);
    if (rowIndex == -1) {
        throw new IllegalArgumentException("indicatorId=" + indicator.getId());
    }
    Element row = grid.getView().getRow(rowIndex);
    Point p = El.fly(row).getAnchorXY("c", false);
    return p.y;
}
Also used : Element(com.google.gwt.dom.client.Element) Point(com.extjs.gxt.ui.client.util.Point) Point(com.extjs.gxt.ui.client.util.Point)

Example 2 with Point

use of com.extjs.gxt.ui.client.util.Point in project activityinfo by bedatadriven.

the class IndicatorGridPanel method getRowY.

public int getRowY(IndicatorDTO indicator) {
    int rowIndex = grid.getStore().indexOf(indicator);
    if (rowIndex == -1) {
        throw new IllegalArgumentException("indicatorId=" + indicator.getId());
    }
    Element row = grid.getView().getRow(rowIndex);
    Point p = El.fly(row).getAnchorXY("c", false);
    return p.y;
}
Also used : Element(com.google.gwt.dom.client.Element) Point(com.extjs.gxt.ui.client.util.Point) Point(com.extjs.gxt.ui.client.util.Point)

Aggregations

Point (com.extjs.gxt.ui.client.util.Point)2 Element (com.google.gwt.dom.client.Element)2