handle views without clientSize

This commit is contained in:
Nathan Cahill
2018-11-05 14:58:27 -07:00
parent 92f95e7288
commit dcd51d64fb

View File

@@ -348,11 +348,14 @@ const Split = (idsOption, options = {}) => {
function innerSize(element) {
// Return nothing if getComputedStyle is not supported (< IE9)
// Or if parent element has no layout yet
if (!getComputedStyle) return null
const computedStyle = getComputedStyle(element)
let size = element[clientSize]
if (size === 0) return null
if (direction === HORIZONTAL) {
size -=
parseFloat(computedStyle.paddingLeft) +