|
|
@ -684,10 +684,13 @@ Core.prototype._startAutoResize = function () { |
|
|
|
|
|
|
|
if (me.dom.root) { |
|
|
|
// check whether the frame is resized
|
|
|
|
if ((me.dom.root.clientWidth != me.props.lastWidth) || |
|
|
|
(me.dom.root.clientHeight != me.props.lastHeight)) { |
|
|
|
me.props.lastWidth = me.dom.root.clientWidth; |
|
|
|
me.props.lastHeight = me.dom.root.clientHeight; |
|
|
|
// Note: we compare offsetWidth here, not clientWidth. For some reason,
|
|
|
|
// IE does not restore the clientWidth from 0 to the actual width after
|
|
|
|
// changing the timeline's container display style from none to visible
|
|
|
|
if ((me.dom.root.offsetWidth != me.props.lastWidth) || |
|
|
|
(me.dom.root.offsetHeight != me.props.lastHeight)) { |
|
|
|
me.props.lastWidth = me.dom.root.offsetWidth; |
|
|
|
me.props.lastHeight = me.dom.root.offsetHeight; |
|
|
|
|
|
|
|
me.emit('change'); |
|
|
|
} |
|
|
|