From 8b23dc3da673e0d592cd53f3e1a5d6cf0fdcd65e Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 21 Jun 2012 09:11:04 +0100 Subject: [PATCH] Fixed positioning of view dropdown --- core/modules/macros/reveal.js | 4 ++++ core/templates/PageTemplate.tid | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/modules/macros/reveal.js b/core/modules/macros/reveal.js index b0ad4f4a5..a678067f9 100644 --- a/core/modules/macros/reveal.js +++ b/core/modules/macros/reveal.js @@ -122,6 +122,10 @@ exports.postRenderInDom = function() { this.child.domNode.style.left = (this.popup.left + this.popup.width) + "px"; this.child.domNode.style.top = this.popup.top + "px"; break; + case "belowleft": + this.child.domNode.style.left = (this.popup.left + this.popup.width - this.child.domNode.offsetWidth) + "px"; + this.child.domNode.style.top = (this.popup.top + this.popup.height) + "px"; + break; default: // Below this.child.domNode.style.left = this.popup.left + "px"; this.child.domNode.style.top = (this.popup.top + this.popup.height) + "px"; diff --git a/core/templates/PageTemplate.tid b/core/templates/PageTemplate.tid index d93971122..a6fdda09b 100644 --- a/core/templates/PageTemplate.tid +++ b/core/templates/PageTemplate.tid @@ -23,9 +23,9 @@ title: $:/templates/PageTemplate }}} << -<< +<<
-{{dropdown-menu tw-suppress-missing-tiddlylink{ +{{dropdown-menu pull-right tw-suppress-missing-tiddlylink{ * << << >> Classic>> * << << >> Sideways>> * << << >> Zoomin>>