fix: sonargate

This commit is contained in:
07akioni 2020-07-22 16:05:38 +08:00
parent 9fe29fbf3f
commit 634f4f1499
2 changed files with 4 additions and 7 deletions

View File

@ -132,13 +132,13 @@ export default {
setBodyMinMaxHeight () {
const bordered = this.bordered
const headerHeight = this.getHeaderElement().offsetHeight
const maxHeight = this.maxHeight + (bordered ? -2 : 0)
const minHeight = this.minHeight + (bordered ? -2 : 0)
const maxHeight = this.maxHeight
const minHeight = this.minHeight
if (maxHeight !== null) {
this.bodyMaxHeight = maxHeight - headerHeight
this.bodyMaxHeight = maxHeight + (bordered ? -2 : 0) - headerHeight
}
if (minHeight !== null) {
this.bodyMinHeight = minHeight - headerHeight
this.bodyMinHeight = minHeight + (bordered ? -2 : 0) - headerHeight
}
}
}

View File

@ -3,9 +3,6 @@
* The color utils are for internal usage, it needs to work first. API design
* need to be refined later.
*/
import { over } from 'lodash-es'
function floor (number) {
return Math.floor(Number(number))
}