User Country Map - Incorrect calculated height of world map in iframe
|Reported by:||trietpham||Owned by:||mattab|
|Priority:||normal||Milestone:||1.12 - The Great 1.x Backlog|
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!