/** * @param positionTo - jQuery selector for finding element (must be visible) */ public static EltCoords calcEltCoords(String positionTo) { JavaScriptObject o = jsCalcEltCoords(positionTo); if (o == null) return null; Double left = JsUtils.getObjDoubleValue(o, "left"); Double top = JsUtils.getObjDoubleValue(o, "top"); Double width = JsUtils.getObjDoubleValue(o, "width"); Double height = JsUtils.getObjDoubleValue(o, "height"); return new EltCoords(left, top, width, height); }
/** * @param positionTo - jQuery selector for finding element (must be visible) */ public static EltCoords calcEltCoords(String positionTo) { JavaScriptObject o = jsCalcEltCoords(positionTo); if (o == null) return null; Double left = JsUtils.getObjDoubleValue(o, "left"); Double top = JsUtils.getObjDoubleValue(o, "top"); Double width = JsUtils.getObjDoubleValue(o, "width"); Double height = JsUtils.getObjDoubleValue(o, "height"); return new EltCoords(left, top, width, height); }
/** * @param positionTo - jQuery selector for finding element (must be visible) */ public static EltCoords calcEltCoords(String positionTo) { JavaScriptObject o = jsCalcEltCoords(positionTo); if (o == null) return null; Double left = JsUtils.getObjDoubleValue(o, "left"); Double top = JsUtils.getObjDoubleValue(o, "top"); Double width = JsUtils.getObjDoubleValue(o, "width"); Double height = JsUtils.getObjDoubleValue(o, "height"); return new EltCoords(left, top, width, height); }