Update rb-datalist.jsx

This commit is contained in:
devezhao-mbp 2019-10-15 00:59:26 +08:00
parent 1dd17caab7
commit 14ce65984f

View file

@ -92,6 +92,7 @@ class RbList extends React.Component {
window.resize_handler = function () {
typeof hold === 'function' && hold()
let maxHeight = $(window).height() - 214
if ($('.main-content>.nav-tabs-classic').length > 0) maxHeight -= 42 // Has tab
scroller.css({ maxHeight: maxHeight })
scroller.perfectScrollbar('update')
}