box

Calculates the offset and dimensions of the given element

Parameters

element HTMLElementThe element to calculate dimensions for.

ReturnsObject 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"));
    console.log(fooBox); // { top: 10, left: 10, width: 200, height: 200 }
</script>
In this article
Not finding the help you need?