Commit 9e20511f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

plugin tab didn't resize content properly when new plugin link was in a new line

parent 0dcae56e
minerva (12.3.1~beta.1) unstable; urgency=low minerva (12.3.1~beta.1) unstable; urgency=low
* Bug fix: tair locus identifiers were used improperly - instead of id the * Bug fix: tair locus identifiers were used improperly - instead of id the
name was used name was used
* Bug fix: plugin tab header wasn't properly resized after adding plugins
that introduced second line for tab selection (#758)
minerva (13.1.0~beta.0) unstable; urgency=low minerva (13.1.0~beta.0) unstable; urgency=low
* Feature: annotators are more flexible - you can define set of input and * Feature: annotators are more flexible - you can define set of input and
......
...@@ -70,6 +70,7 @@ PluginManager.prototype.getGuiUtils = function () { ...@@ -70,6 +70,7 @@ PluginManager.prototype.getGuiUtils = function () {
*/ */
PluginManager.prototype.addPlugin = function (options) { PluginManager.prototype.addPlugin = function (options) {
var self = this; var self = this;
var oldLinkHeight = $(".nav-tabs", self.getElement()).height();
$(self.getElement()).show(); $(self.getElement()).show();
if (self._panels === undefined) { if (self._panels === undefined) {
self.getGuiUtils().initTabContent(self); self.getGuiUtils().initTabContent(self);
...@@ -78,7 +79,6 @@ PluginManager.prototype.addPlugin = function (options) { ...@@ -78,7 +79,6 @@ PluginManager.prototype.addPlugin = function (options) {
self.getGuiUtils().addTab(self, {name: "PLUGIN", content: element}); self.getGuiUtils().addTab(self, {name: "PLUGIN", content: element});
var oldLinkHeight = $(".nav-tabs", self.getElement()).height();
var plugin; var plugin;
return Promise.resolve().then(function () { return Promise.resolve().then(function () {
if (options instanceof Plugin) { if (options instanceof Plugin) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment