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

when last plugin is unloaded resize event is triggered

parent 2038b6da
No related branches found
No related tags found
3 merge requests!46912.1.0~beta.4 into master,!45912.1.0~beta.3 into master,!455Resolve "unloading all plugins doesn't trigger on resize"
Pipeline #6787 passed
......@@ -185,7 +185,11 @@ PluginManager.prototype.removePlugin = function (plugin) {
}
GuiConnector.removeWindowResizeEvent(self._pluginOnResizeHandlers[plugin.getPluginId()]);
return plugin.unload().then(function () {
return self.adjustMinWidth();
if (self._plugins.length === 0) {
return self.getMap().getMapCanvas().triggerListeners("resize");
} else {
return self.adjustMinWidth();
}
});
};
......
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