"use strict";
+// "User defined" popup class to be able to specify a minimum size for the popup,
+// so that Safari 7.0 displays it correctly (see ticket #89).
+OpenLayers.Popup.WrInfo = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {
+ minSize: new OpenLayers.Size(180, 260),
+
+ initialize: function(id, lonlat, contentSize, contentHTML, anchor, closeBox, closeCallback) {
+ OpenLayers.Popup.FramedCloud.prototype.initialize.apply(this, arguments);
+ },
+
+ CLASS_NAME: "OpenLayers.Popup.WrInfo"
+});
+
+
function init_wrmap(i, jq_map) {
// define constants
var EPSG4326 = new OpenLayers.Projection("EPSG:4326"); // lon/lat
// Open popup
var selectFeatureControl = this;
- var popup = new OpenLayers.Popup.FramedCloud('sledruninfopopup_' + attr.wiki,
+ var popup = new OpenLayers.Popup.WrInfo('sledruninfopopup_' + attr.wiki,
feature.geometry.getBounds().getCenterLonLat(),
null,
popup_div.html(),