devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
22 lines (20 loc) • 605 B
JavaScript
/**
* DevExtreme (renovation/ui/scroll_view/utils/get_bounding_rect.js)
* Version: 21.2.4
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.getBoundingRect = getBoundingRect;
function getBoundingRect(el) {
return null !== el && void 0 !== el && el.getBoundingClientRect ? el.getBoundingClientRect() : {
width: 0,
height: 0,
bottom: 0,
top: 0,
left: 0,
right: 0
}
}