1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-22 18:41:57 +03:00

use box-sizing: border-box to make clientHeight === actual height

This commit is contained in:
Bruno Windels
2019-01-21 17:30:02 +01:00
parent c9d5c4903b
commit 018f3d2a5c
2 changed files with 5 additions and 1 deletions

View File

@ -689,7 +689,7 @@ module.exports = React.createClass({
blockShrinking: function() {
const messageList = this.refs.itemlist;
if (messageList) {
const currentHeight = messageList.clientHeight - 18;
const currentHeight = messageList.clientHeight;
messageList.style.minHeight = `${currentHeight}px`;
}
},