Skip to content

Instantly share code, notes, and snippets.

@TomGallon
Created November 29, 2015 17:57
Show Gist options
  • Save TomGallon/8c5bb3e1cabcd51166e0 to your computer and use it in GitHub Desktop.
Save TomGallon/8c5bb3e1cabcd51166e0 to your computer and use it in GitHub Desktop.
  const node = ReactDom.findDOMNode(this);
  const bodyNode = document.body;
  const value = bodyNode.scrollHeight - node.scrollHeight - bodyNode.clientHeight;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment