Merge pull request #124 from ajohnson23/messages_scrolldown_fix
Fix improper scrolldown button display issue.
This commit is contained in:
commit
2c04b9cb5b
1 changed files with 2 additions and 2 deletions
|
@ -160,8 +160,8 @@ module.exports = React.createClass({
|
||||||
// content. So don't call it in render() cycles.
|
// content. So don't call it in render() cycles.
|
||||||
isAtBottom: function() {
|
isAtBottom: function() {
|
||||||
var sn = this._getScrollNode();
|
var sn = this._getScrollNode();
|
||||||
// + 1 here to avoid fractional pixel rounding errors
|
// + 2 here to avoid fractional pixel rounding errors
|
||||||
return sn.scrollHeight - sn.scrollTop <= sn.clientHeight + 1;
|
return sn.scrollHeight - sn.scrollTop <= sn.clientHeight + 2;
|
||||||
},
|
},
|
||||||
|
|
||||||
// check the scroll state and send out backfill requests if necessary.
|
// check the scroll state and send out backfill requests if necessary.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue