Merge pull request #2241 from jmeas/fix-position

Sets offset of fontMetrics div to be 0.
This commit is contained in:
Harutyun Amirjanyan 2014-11-16 19:14:29 +04:00
commit a0f7864b78

View file

@ -82,9 +82,9 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) {
this.$setMeasureNodeStyles = function(style, isRoot) {
style.width = style.height = "auto";
style.left = style.top = "-100px";
style.left = style.top = "0px";
style.visibility = "hidden";
style.position = "fixed";
style.position = "absolute";
style.whiteSpace = "pre";
if (useragent.isIE < 8) {