提交 78049ede 编写于 作者: S sushuang

tweak ie8

上级 48cf8d62
......@@ -741,7 +741,7 @@ define(function (require) {
// Consider browser compatibility.
// IE8 does not support getComputedStyle.
if (document.defaultView.getComputedStyle) {
if (document.defaultView && document.defaultView.getComputedStyle) {
var stl = document.defaultView.getComputedStyle(el);
if (stl) {
width += parseInt(stl.paddingLeft, 10) + parseInt(stl.paddingRight, 10)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册