infobox: ensure sidebar box is visible on create

This commit is contained in:
Nils Schneider 2015-07-06 22:30:45 +02:00
parent e834e2ab94
commit cc505f4d4a
2 changed files with 5 additions and 0 deletions

View file

@ -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")

View file

@ -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")
} }