mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Fix the reveal macro in run mode
This commit is contained in:
parent
a149510fa3
commit
ca2c790c27
@ -118,7 +118,7 @@ exports.executeMacro = function() {
|
||||
attributes["class"].push("tw-popup");
|
||||
break;
|
||||
}
|
||||
attributes.style = {display: this.isOpen ? "block" : "none"};
|
||||
attributes.style = {display: this.isOpen ? (this.isBlock ? "block" : "inline") : "none"};
|
||||
var child = $tw.Tree.Element(this.isBlock ? "div" : "span",attributes,this.isOpen ? this.content : [],{
|
||||
events: ["click"],
|
||||
eventHandler: this
|
||||
@ -182,7 +182,7 @@ exports.refreshInDom = function(changes) {
|
||||
}
|
||||
}
|
||||
// Set the visibility of the children
|
||||
this.child.domNode.style.display = this.isOpen ? "block" : "none";
|
||||
this.child.domNode.style.display = this.isOpen ? (this.isBlock ? "block" : "inline") : "none";
|
||||
// Position the content if required
|
||||
this.postRenderInDom();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user