Skip to content

Commit

Permalink
Add top from getBoundingClientRect to textHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
fchasen committed Nov 1, 2018
1 parent 8b14551 commit 3bf1501
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ class Contents {
height += border.height;
}

if (height && rect.top) {
height += rect.top;
}

return Math.round(height);
}

Expand Down

0 comments on commit 3bf1501

Please sign in to comment.