Gazebo_simulation-Frontend/node_modules/dom-helpers/esm/height.js
2020-12-21 10:29:31 -05:00

6 lines
227 B
JavaScript

import getWindow from './isWindow';
import offset from './offset';
export default function height(node, client) {
var win = getWindow(node);
return win ? win.innerHeight : client ? node.clientHeight : offset(node).height;
}