1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-31 15:42:59 +00:00

Fixed zooming chooser

This commit is contained in:
Jeremy Ruston
2012-06-11 13:08:16 +01:00
parent ee0aadf8cd
commit 901b212a66
2 changed files with 13 additions and 9 deletions

View File

@@ -149,7 +149,19 @@ exports.handleEvent = function(event) {
exports.executeMacro = function() {
this.chooserDisplayed = false;
return $tw.Tree.Element("div",{},[]);
var attributes = {
style: {
"position": "absolute",
"left": "0",
"top": "0",
"min-width": "16px",
"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,[]);
};
})();