mirror of https://github.com/vector-im/riot-web
fix tests
parent
3b2faa4cf9
commit
5543c126e6
|
@ -337,6 +337,8 @@ module.exports = React.createClass({
|
||||||
// Get a collection of sticky header containers references
|
// Get a collection of sticky header containers references
|
||||||
this.stickies = document.getElementsByClassName("mx_RoomSubList_labelContainer");
|
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
|
// 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;
|
this.scrollAreaSufficient = (120 + (this.stickies[0].getBoundingClientRect().height * this.stickies.length)) < scrollAreaHeight;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue