MCPcopy Index your code
hub / github.com/mailru/FileAPI / _getDimensions

Function _getDimensions

lib/FileAPI.Flash.js:766–779  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

764
765
766 function _getDimensions(el){
767 var
768 box = el.getBoundingClientRect()
769 , body = document.body
770 , docEl = (el && el.ownerDocument).documentElement
771 ;
772
773 return {
774 top: box.top + (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || body.clientTop || 0)
775 , left: box.left + (window.pageXOffset || docEl.scrollLeft) - (docEl.clientLeft || body.clientLeft || 0)
776 , width: box.right - box.left
777 , height: box.bottom - box.top
778 };
779 }
780
781 // @export
782 api.Flash = flash;

Callers 1

FileAPI.Flash.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected