mirror of https://github.com/vector-im/riot-web
Always setup stickies, even if we aren't going to use them so that the following map can fire
parent
7631539584
commit
8f7d3394e6
|
@ -333,7 +333,6 @@ module.exports = React.createClass({
|
||||||
this.scrollAreaSufficient = (120 + (stickies[0].getBoundingClientRect().height * stickies.length)) < scrollAreaHeight;
|
this.scrollAreaSufficient = (120 + (stickies[0].getBoundingClientRect().height * stickies.length)) < scrollAreaHeight;
|
||||||
|
|
||||||
// Initialise the sticky headers
|
// Initialise the sticky headers
|
||||||
if (this.scrollAreaSufficient) {
|
|
||||||
if (typeof stickies === "object" && stickies.length > 0) {
|
if (typeof stickies === "object" && stickies.length > 0) {
|
||||||
// Initialise the sticky headers
|
// Initialise the sticky headers
|
||||||
this.stickyWrappers = Array.prototype.map.call(stickies, function(sticky, i) {
|
this.stickyWrappers = Array.prototype.map.call(stickies, function(sticky, i) {
|
||||||
|
@ -350,7 +349,6 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var scrollStuckOffset = 0;
|
var scrollStuckOffset = 0;
|
||||||
|
|
Loading…
Reference in New Issue