Fix incorrect min-width for mtd elements. Resolves issue #699.
This commit is contained in:
parent
b5454061cc
commit
b9685dd507
|
@ -974,8 +974,9 @@
|
||||||
tag = nMML.adjustWidths[i];
|
tag = nMML.adjustWidths[i];
|
||||||
var style = tag.getAttribute("style") || "";
|
var style = tag.getAttribute("style") || "";
|
||||||
if (!style.match(/(^|;)\s*min-width:/)) {
|
if (!style.match(/(^|;)\s*min-width:/)) {
|
||||||
mtd.push(tag.scrollWidth);
|
var width = tag.firstChild.scrollWidth;
|
||||||
var width = (tag.scrollWidth/nMML.ex).toFixed(3)+"ex";
|
mtd.push(width);
|
||||||
|
width = (width/nMML.ex).toFixed(3)+"ex";
|
||||||
style = style.replace(/;?\s*$/,"; ");
|
style = style.replace(/;?\s*$/,"; ");
|
||||||
tag.setAttribute("style",style+"min-width:"+width);
|
tag.setAttribute("style",style+"min-width:"+width);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user