Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fixes #3 - tooltips are not aligned or sized correctly in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Aug 29, 2014
1 parent 171cc87 commit efa5f36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core-tooltip.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@
setPosition: function() {
var controlWidth = this.clientWidth;
var controlHeight = this.clientHeight;

var styles = getComputedStyle(this.$.tooltip);
var toolTipWidth = parseFloat(styles.width);
var toolTipHeight = parseFloat(styles.height);
var toolTipWidth = this.$.tooltip.clientWidth;
var toolTipHeight = this.$.tooltip.clientHeight;

switch (this.position) {
case 'top':
Expand Down

0 comments on commit efa5f36

Please sign in to comment.