根據該文件,我應該能夠在FramedCloud構造函數聲明一個OpenLayers.Size
對象來配置我的OpenLayers彈出窗口的大小:的OpenLayers FramedCloud自動調整大小
this.popup = new OpenLayers.Popup.FramedCloud('featurePopup',
this.options.feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(80, 60),
html,
null, true, this.onPopupClose
);
map.addPopup(this.popup, true);
目前所呈現的彈出窗口自動調整大小,無論我在構造函數中使用了什麼維度。
我已經試過FramedCloud的自動調整大小屬性手動設置爲false以及手動調節的彈出窗口中的CSS樣式沒有達到我想要的結果。
我在OpenLayers 2.11問題列表中檢查並發現了一些similar issues,但是我還沒有找到解決方法。有任何想法嗎?