MCPcopy
hub / github.com/bokuweb/react-rnd / getOffsetHeight

Method getOffsetHeight

src/index.tsx:274–284  ·  view source on GitHub ↗
(boundary: HTMLElement)

Source from the content-addressed store, hash-verified

272 }
273
274 getOffsetHeight(boundary: HTMLElement) {
275 const scale = this.props.scale as number;
276 switch (this.props.bounds) {
277 case "window":
278 return window.innerHeight / scale;
279 case "body":
280 return document.body.offsetHeight / scale;
281 default:
282 return boundary.offsetHeight;
283 }
284 }
285
286 getOffsetWidth(boundary: HTMLElement) {
287 const scale = this.props.scale as number;

Callers 1

onResizeStartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected