calculating the scrollAreaHeight correctly taking into account the different scroll methods available on macOSX, i.e. System Preferences>General>Show Scroll Bars
parent
8f7d3394e6
commit
123d9b56c8
|
@ -323,7 +323,7 @@ module.exports = React.createClass({
|
||||||
// Use the offset of the top of the scroll area from the window
|
// 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
|
// as this is used to calculate the CSS fixed top position for the stickies
|
||||||
var scrollAreaOffset = scrollArea.getBoundingClientRect().top;
|
var scrollAreaOffset = scrollArea.getBoundingClientRect().top;
|
||||||
var scrollAreaHeight = scrollArea.getBoundingClientRect().height;
|
var scrollAreaHeight = ReactDOM.findDOMNode(this).getBoundingClientRect().height;
|
||||||
|
|
||||||
if (initialise) {
|
if (initialise) {
|
||||||
// Get a collection of sticky header containers
|
// Get a collection of sticky header containers
|
||||||
|
|
Loading…
Reference in New Issue