From 4f4b743d9ca546a4e7ccffa969bf36269c0c4e02 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 12 Apr 2014 18:24:39 +0100 Subject: [PATCH] Fix Cecily tiddler width for when sidebar hidden --- plugins/tiddlywiki/cecily/cecily.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/cecily/cecily.js b/plugins/tiddlywiki/cecily/cecily.js index 84c331182..37a30f371 100644 --- a/plugins/tiddlywiki/cecily/cecily.js +++ b/plugins/tiddlywiki/cecily/cecily.js @@ -84,7 +84,8 @@ Load the current map CecilyStoryView.prototype.loadMap = function() { this.map = this.listWidget.wiki.getTiddlerData(this.getMapTiddlerTitle(),{ positions: {}, - newTiddlerPosition: {x: 0, y: 0} + newTiddlerPosition: {x: 0, y: 0}, + width: 600 }); }; @@ -99,6 +100,7 @@ CecilyStoryView.prototype.positionTiddler = function(title,domNode) { var pos = this.lookupTiddlerInMap(title,domNode), scale = pos.w/domNode.offsetWidth; $tw.utils.setStyle(domNode,[ + {width: this.map.width + "px"}, {transformOrigin: "0% 0%"}, {transform: "translateX(" + pos.x + "px) translateY(" + pos.y + "px) scale(" + scale + ")"} ]);