Fix display bug in latest Chrome build.
This commit is contained in:
parent
6c90abaf3d
commit
7d09fb6972
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ var Dispatcher = function() {
|
|||
}
|
||||
if (len === 1) {
|
||||
var dim = correctSize(kids[0]);
|
||||
if (e.style.width !== "") { dim[0] = e.style.width.slice(0,-2) - 0; }
|
||||
if (e.style.height !== "") { dim[1] = e.style.height.slice(0,-2) - 0; }
|
||||
if (e.style.hasOwnProperty('width') && e.style.width.length > 0) { dim[0] = e.style.width.slice(0,-2) - 0; }
|
||||
if (e.style.hasOwnProperty('height') && e.style.height.length > 0) { dim[1] = e.style.height.slice(0,-2) - 0; }
|
||||
if (dim[0] !== 0) { e.style.width = dim[0] + "px"; }
|
||||
if (dim[1] !== 0) { e.style.height = dim[1] + "px"; }
|
||||
return dim;
|
||||
|
|
Loading…
Reference in a new issue