Skip to content
Snippets Groups Projects
Commit 2894867a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '434-after-first-plugin-is-loaded-openlayers-become-squeezed' into 'master'

Resolve "after first plugin is loaded openlayers become squeezed"

Closes #434

See merge request !328
parents 5baea769 8375fcda
No related branches found
No related tags found
1 merge request!328Resolve "after first plugin is loaded openlayers become squeezed"
Pipeline #
......@@ -103,6 +103,10 @@ PluginManager.prototype.addPlugin = function (options) {
GuiConnector.addWindowResizeEvent(adjustHeight);
adjustHeight();
return self.adjustMinWidth();
}).then(function () {
if (self._plugins.length === 1) {
return self.getMap().getMapCanvas().triggerListeners("resize");
}
}).then(function () {
return plugin;
});
......@@ -122,7 +126,7 @@ PluginManager.prototype.createTabForPlugin = function () {
self.getElement().style.height = "100%";
self.getElement().style.position = "relative";
self._tabData = guiUtils.createTabDiv({element: self.getElement(), id: "plugin_tab"});
tabData = self._tabData;
tabData = self._tabData;
$(tabData.element).css('position', 'absolute');
$(tabData.element).css('top', '0');
$(tabData.element).css('width', '100%');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment