mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 14:24:51 +00:00
Fix Cecily tiddler width for when sidebar hidden
This commit is contained in:
parent
ee2cd2056c
commit
4f4b743d9c
@ -84,7 +84,8 @@ Load the current map
|
|||||||
CecilyStoryView.prototype.loadMap = function() {
|
CecilyStoryView.prototype.loadMap = function() {
|
||||||
this.map = this.listWidget.wiki.getTiddlerData(this.getMapTiddlerTitle(),{
|
this.map = this.listWidget.wiki.getTiddlerData(this.getMapTiddlerTitle(),{
|
||||||
positions: {},
|
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),
|
var pos = this.lookupTiddlerInMap(title,domNode),
|
||||||
scale = pos.w/domNode.offsetWidth;
|
scale = pos.w/domNode.offsetWidth;
|
||||||
$tw.utils.setStyle(domNode,[
|
$tw.utils.setStyle(domNode,[
|
||||||
|
{width: this.map.width + "px"},
|
||||||
{transformOrigin: "0% 0%"},
|
{transformOrigin: "0% 0%"},
|
||||||
{transform: "translateX(" + pos.x + "px) translateY(" + pos.y + "px) scale(" + scale + ")"}
|
{transform: "translateX(" + pos.x + "px) translateY(" + pos.y + "px) scale(" + scale + ")"}
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user