fix style.font property.

This commit is contained in:
brn 2014-04-22 10:56:52 +09:00
commit 2566dd74a5

View file

@ -85,7 +85,7 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) {
style.visibility = "hidden";
style.position = "fixed";
style.whiteSpace = "pre";
style.font = "inherit";
style['font-family'] = style['font-style'] = style['font-weight'] = 'inherit';
style.overflow = isRoot ? "hidden" : "visible";
};