private double getAbsolutePos(final int dimension, final Element element) {
        if (dimension == Dimension.X) {
            return ElementUtil.getClientLeft(element);
        }

        return ElementUtil.getClientTop(element);
    }
Convenience method to transfer position and size data to an element.
stroom-core-client/src/main/java/stroom/dashboard/client/flexlayout/FlexLayout.java