ie11 fix getBoundingClientRect() error
This commit is contained in:
parent
d40bec839d
commit
7ab9ce686f
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue