You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
use box-sizing: border-box to make clientHeight === actual height
This commit is contained in:
@ -171,6 +171,10 @@ limitations under the License.
|
|||||||
.mx_RoomView_MessageList {
|
.mx_RoomView_MessageList {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 18px;
|
padding: 18px;
|
||||||
|
margin: 0;
|
||||||
|
/* needed as min-height is set to clientHeight in ScrollPanel
|
||||||
|
to prevent shrinking when WhoIsTypingTile is hidden */
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomView_MessageList li {
|
.mx_RoomView_MessageList li {
|
||||||
|
@ -689,7 +689,7 @@ module.exports = React.createClass({
|
|||||||
blockShrinking: function() {
|
blockShrinking: function() {
|
||||||
const messageList = this.refs.itemlist;
|
const messageList = this.refs.itemlist;
|
||||||
if (messageList) {
|
if (messageList) {
|
||||||
const currentHeight = messageList.clientHeight - 18;
|
const currentHeight = messageList.clientHeight;
|
||||||
messageList.style.minHeight = `${currentHeight}px`;
|
messageList.style.minHeight = `${currentHeight}px`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user