From f9ab2fa95795edd77babe990e909a8da50276e20 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Sun, 4 Sep 2016 08:01:04 +0100 Subject: [PATCH] When zoomed in, the sticky headers should correctly position themselves --- src/components/views/rooms/RoomList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 084aac378c..91a32f51ac 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -324,7 +324,7 @@ module.exports = React.createClass({ var scrollArea = this._getScrollNode(); // 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 scrollAreaOffset = scrollArea.getBoundingClientRect().top + window.pageYOffset; // Use the offset of the top of the componet from the window // as this is used to calculate the CSS fixed top position for the stickies var scrollAreaHeight = ReactDOM.findDOMNode(this).getBoundingClientRect().height;