Example use
1 2 3 4 5 6 7 |
changeLocationOfContainers = () => { const headHeight = this.header.getBoundingClientRect().height; this.setState({ specsPaddingTop: DEFAULT_SPECS_PADDING_TOP + headHeight, roomsTop: DEFAULT_ROOMS_TOP + headHeight, }) }; |
1 |
<div ref={n => this.header = n} style={headBarContainer}> |