From 901b212a66b7d9bdc7bd702b204e89b1f2a9516d Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 11 Jun 2012 13:08:16 +0100 Subject: [PATCH] Fixed zooming chooser --- core/modules/macros/chooser.js | 14 +++++++++++++- tw5.com/wiki/styles.css.tid | 8 -------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/core/modules/macros/chooser.js b/core/modules/macros/chooser.js index ef1ee78c4..fb6e091b7 100644 --- a/core/modules/macros/chooser.js +++ b/core/modules/macros/chooser.js @@ -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,[]); }; })(); diff --git a/tw5.com/wiki/styles.css.tid b/tw5.com/wiki/styles.css.tid index d5d3daa3a..584a2bc11 100644 --- a/tw5.com/wiki/styles.css.tid +++ b/tw5.com/wiki/styles.css.tid @@ -159,14 +159,6 @@ a.tw-tiddlylink-missing { font-family: Helvetica, Arial, sans-serif; } -.navigation-panel { - position: absolute; - left: 0; - top: 0; - min-width: 16px; - height: 100%; /* Makes the element the same height as the body, since the body is position: relative */ -} - .navigation-panel ul { position: relative; top: 0;