mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-06 04:48:01 +00:00
Fix the reveal macro in run mode
This commit is contained in:
@@ -118,7 +118,7 @@ exports.executeMacro = function() {
|
|||||||
attributes["class"].push("tw-popup");
|
attributes["class"].push("tw-popup");
|
||||||
break;
|
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 : [],{
|
var child = $tw.Tree.Element(this.isBlock ? "div" : "span",attributes,this.isOpen ? this.content : [],{
|
||||||
events: ["click"],
|
events: ["click"],
|
||||||
eventHandler: this
|
eventHandler: this
|
||||||
@@ -182,7 +182,7 @@ exports.refreshInDom = function(changes) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the visibility of the children
|
// 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
|
// Position the content if required
|
||||||
this.postRenderInDom();
|
this.postRenderInDom();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user