@anonymous-piwik-user opened this Issue on May 13th 2013

I encountered a bug of incorrect calculated height of world map when integrating User Country Map widget in my site via iframe.

Please see the reproduction at http://jsfiddle.net/JcQmQ/. The widget is clipped by its containing iframe in the bottom.

Further investigation, i found that resize function in vistor-map.js that calculates dimension of map incorrectly.

var ratio, w, h,
map = this.map,
maxHeight = $(window).height() - (this.theWidget && this.theWidget.isMaximised ? 150 : 55);

In case of using iframe, the height of map is equals to iframe's height subtracted by 55px. But observing actual height of this widget, it should be subtracted by 79px.

Hope this help!

Keywords: UserCountryMap

@mattab commented on May 14th 2013 Owner

thanks for report. Do you suggest we replace 55 by 79 in this code? I could do this, please confirm.

@anonymous-piwik-user commented on May 14th 2013

Yes, please. Thanks for your supports.

thanks for report. Do you suggest we replace 55 by 79 in this code? I could do this, please confirm.

@mattab commented on May 14th 2013 Owner

In 23500dbfadd29cfeb6a51cb2a99622b7ef11427a: Fixes #3935 Thanks for the patch!

This Issue was closed on May 14th 2013
Powered by GitHub Issue Mirror