calculating the scrollAreaHeight correctly taking into account the different scroll methods available on macOSX, i.e. System Preferences>General>Show Scroll Bars

pull/21833/head
wmwragg 2016-08-28 16:25:20 +01:00
parent 8f7d3394e6
commit 123d9b56c8
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ module.exports = React.createClass({
// Use the offset of the top of the scroll area from the window
// as this is used to calculate the CSS fixed top position for the stickies
var scrollAreaOffset = scrollArea.getBoundingClientRect().top;
var scrollAreaHeight = scrollArea.getBoundingClientRect().height;
var scrollAreaHeight = ReactDOM.findDOMNode(this).getBoundingClientRect().height;
if (initialise) {
// Get a collection of sticky header containers