ie11 fix getBoundingClientRect() error

This commit is contained in:
Diego Ferreyra 2014-07-28 14:34:39 -03:00
commit 7ab9ce686f

View file

@ -132,7 +132,7 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) {
try {
rect = this.$measureNode.getBoundingClientRect();
} catch(e) {
rect = { top : this.$measureNode.offsetTop, left : this.$measureNode.offsetLeft }
rect = {width: 0, height:0 }
};
var size = {
height: rect.height,