Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
cecf7f8e
Commit
cecf7f8e
authored
Apr 08, 2019
by
Piotr Gawron
Browse files
adding new too many plugins didn't adjust tab content width (with multi lines of links)
parent
9c3d82e1
Pipeline
#9752
passed with stage
in 13 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
cecf7f8e
...
...
@@ -49,6 +49,8 @@ minerva (12.3.0~alpha.0) unstable; urgency=low
list
of
genomes
(#
761
)
*
Bug
fix
:
fixing
situation
when
Molart
started
with
variation
overlay
not
having
the
aa
change
information
*
Bug
fix
:
plugin
contect
element
width
is
adjusted
when
link
to
tabs
are
wrapped
in
more
than
one
line
(#
758
)
minerva
(
12.2.2
)
stable
;
urgency
=
medium
*
Bug
fix
:
downloading
overlays
didn
't work from admin panel when project
...
...
frontend-js/src/main/js/plugin/PluginManager.js
View file @
cecf7f8e
...
...
@@ -78,6 +78,7 @@ PluginManager.prototype.addPlugin = function (options) {
self
.
getGuiUtils
().
addTab
(
self
,
{
name
:
"
PLUGIN
"
,
content
:
element
});
var
oldLinkHeight
=
$
(
"
.nav-tabs
"
,
self
.
getElement
()).
height
();
var
plugin
;
return
Promise
.
resolve
().
then
(
function
()
{
if
(
options
instanceof
Plugin
)
{
...
...
@@ -120,8 +121,15 @@ PluginManager.prototype.addPlugin = function (options) {
}
return
self
.
adjustMinWidth
();
}).
then
(
function
()
{
var
newLinkHeight
=
$
(
"
.nav-tabs
"
,
self
.
getElement
()).
height
();
if
(
self
.
_plugins
.
length
===
1
)
{
return
self
.
getMap
().
getMapCanvas
().
triggerListeners
(
"
resize
"
);
}
else
if
(
oldLinkHeight
!==
newLinkHeight
)
{
for
(
var
key
in
self
.
_pluginOnResizeHandlers
)
{
if
(
self
.
_pluginOnResizeHandlers
.
hasOwnProperty
(
key
))
{
self
.
_pluginOnResizeHandlers
[
key
]();
}
}
}
}).
then
(
function
()
{
return
plugin
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment