Refactor zoomer macro to take into account CSS classes

print-window-tiddler
Jeremy Ruston 2012-06-11 13:05:57 +01:00
rodzic 7a5c67fadb
commit 6448c70984
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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,[]);
};
})();