fix tests

pull/21833/head
Matthew Hodgson 2016-08-30 15:22:52 +01:00
parent 3b2faa4cf9
commit 5543c126e6
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,8 @@ module.exports = React.createClass({
// Get a collection of sticky header containers references
this.stickies = document.getElementsByClassName("mx_RoomSubList_labelContainer");
if (!this.stickies.length) return;
// Make sure there is sufficient space to do sticky headers: 120px plus all the sticky headers
this.scrollAreaSufficient = (120 + (this.stickies[0].getBoundingClientRect().height * this.stickies.length)) < scrollAreaHeight;