Work around IE bug when direction:rtl is specified outside the math

This commit is contained in:
Davide P. Cervone 2011-06-05 11:35:09 -04:00
parent 2953e01b12
commit 065acfd10a
6 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -505,7 +505,7 @@
getMSIEmarginScale: function (span) {
span.appendChild(this.marginCheck);
var W = this.marginCheck.offsetWidth, w = this.marginMove.offsetWidth;
var scale = w/(2*w - W);
var scale = (2*w - W ? w/(2*w - W) : 1);
span.removeChild(this.marginCheck);
return scale;
},