Getting element size with getBoundingClientRect

pull/7259/head
xavijam 9 years ago
parent cbb0570dbb
commit 19a569cc79

@ -1,6 +1,6 @@
{
"name": "cartodb-ui",
"version": "3.23.65",
"version": "3.23.66",
"description": "CartoDB UI frontend",
"repository": {
"type": "git",

@ -45,8 +45,8 @@
// Fixed by Arce
var pos = $.extend({}, this.$element.offset(), {
width: this.$element[0].offsetWidth,
height: this.$element[0].offsetHeight
width: this.$element[0].getBoundingClientRect().width,
height: this.$element[0].getBoundingClientRect().height
});
var actualWidth = $tip[0].offsetWidth,

Loading…
Cancel
Save