Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy