mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-04 08:12:14 -08:00
Refactor zoomer macro to take into account CSS classes
This commit is contained in:
parent
7a5c67fadb
commit
6448c70984
1 changed files with 7 additions and 3 deletions
|
|
@ -100,15 +100,19 @@ exports.handleEvent = function(event) {
|
|||
|
||||
exports.executeMacro = function() {
|
||||
this.inZoomer = false;
|
||||
return $tw.Tree.Element("div",{
|
||||
var attributes = {
|
||||
style: {
|
||||
"position": "absolute",
|
||||
"right": "0",
|
||||
"top": "0",
|
||||
"min-width": "16px",
|
||||
"height": "100%"
|
||||
"height": "100%" // Makes the height the same as the body, since the body is position:relative
|
||||
}
|
||||
},[]);
|
||||
};
|
||||
if(this.classes) {
|
||||
attributes["class"] = this.classes.slice(0);
|
||||
}
|
||||
return $tw.Tree.Element("div",attributes,[]);
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue