on master help sign in
Fix display bug in latest Chrome build.
7d09fb6evancz
core-js/runtime/Dispatcher.js+2−2
@@ -137,8 +137,8 @@ var Dispatcher = function() {
137 }
137 }
138 if (len === 1) {
138 if (len === 1) {
139 var dim = correctSize(kids[0]);
139 var dim = correctSize(kids[0]);
140− if (e.style.width !== "") { dim[0] = e.style.width.slice(0,-2) - 0; }
140+ if (e.style.hasOwnProperty('width') && e.style.width.length > 0) { dim[0] = e.style.width.slice(0,-2) - 0; }
141− if (e.style.height !== "") { dim[1] = e.style.height.slice(0,-2) - 0; }
141+ if (e.style.hasOwnProperty('height') && e.style.height.length > 0) { dim[1] = e.style.height.slice(0,-2) - 0; }
142 if (dim[0] !== 0) { e.style.width = dim[0] + "px"; }
142 if (dim[0] !== 0) { e.style.width = dim[0] + "px"; }
143 if (dim[1] !== 0) { e.style.height = dim[1] + "px"; }
143 if (dim[1] !== 0) { e.style.height = dim[1] + "px"; }
144 return dim;
144 return dim;