diff --git a/core/modules/macros/zoomer.js b/core/modules/macros/zoomer.js index 7fc9c9a5c..7dd4ba9bd 100644 --- a/core/modules/macros/zoomer.js +++ b/core/modules/macros/zoomer.js @@ -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,[]); }; })();