infobox: ensure sidebar box is visible on create
This commit is contained in:
parent
e834e2ab94
commit
cc505f4d4a
|
@ -13,6 +13,7 @@ define(["infobox/link", "infobox/node"], function (Link, Node) {
|
|||
|
||||
function create() {
|
||||
destroy()
|
||||
sidebar.ensureVisible()
|
||||
sidebar.hide()
|
||||
|
||||
el = document.createElement("div")
|
||||
|
|
|
@ -30,6 +30,10 @@ define([], function () {
|
|||
d.render(container)
|
||||
}
|
||||
|
||||
self.ensureVisible = function () {
|
||||
sidebar.classList.remove("hidden")
|
||||
}
|
||||
|
||||
self.hide = function () {
|
||||
container.classList.add("hidden")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue