box

Calculates the offset and dimensions of the given element

Parameters

element HTMLElement

The element to calculate dimensions for.

Returns

Object An object with top, left, width and height fields in pixels.

Example

<div id="foo" style="position: absolute; top:10px; left: 10px; height: 200px; width: 200px"></div>
<script>
    var fooBox = kendo.effects.box($("#foo"));
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(fooBox); // { top: 10, left: 10, width: 200, height: 200 }
</script>
In this article
box
Not finding the help you need?
Contact Support