Make the reveal widget hide the div element if it is not open

This commit is contained in:
Jeremy Ruston
2013-10-15 21:06:52 +01:00
parent ebcd5177ec
commit 5b4ca67d6e
+3
View File
@@ -36,6 +36,9 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) {
this.positionPopup(domNode);
}
if(!this.isOpen) {
domNode.setAttribute("hidden","true")
}
this.domNodes.push(domNode);
};