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() {
|
function create() {
|
||||||
destroy()
|
destroy()
|
||||||
|
sidebar.ensureVisible()
|
||||||
sidebar.hide()
|
sidebar.hide()
|
||||||
|
|
||||||
el = document.createElement("div")
|
el = document.createElement("div")
|
||||||
|
@ -30,6 +30,10 @@ define([], function () {
|
|||||||
d.render(container)
|
d.render(container)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.ensureVisible = function () {
|
||||||
|
sidebar.classList.remove("hidden")
|
||||||
|
}
|
||||||
|
|
||||||
self.hide = function () {
|
self.hide = function () {
|
||||||
container.classList.add("hidden")
|
container.classList.add("hidden")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user