diff --git a/core/modules/storyviews/zoomin.js b/core/modules/storyviews/zoomin.js index e37773838..b2796e953 100644 --- a/core/modules/storyviews/zoomin.js +++ b/core/modules/storyviews/zoomin.js @@ -35,6 +35,7 @@ var ZoominListView = function(listWidget) { } else { self.currentTiddlerDomNode = domNode; } + $tw.utils.addClass(domNode,"tc-storyview-zoomin-tiddler"); }); }; @@ -51,6 +52,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) { return; } // Make the new tiddler be position absolute and visible so that we can measure it + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ {display: "block"}, {transformOrigin: "0 0"}, @@ -132,6 +134,7 @@ ZoominListView.prototype.insert = function(widget) { return; } // Make the newly inserted node position absolute and hidden + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ {display: "none"} ]); @@ -154,6 +157,7 @@ ZoominListView.prototype.remove = function(widget) { return; } // Set up the tiddler that is being closed + $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(targetElement,[ {display: "block"}, {transformOrigin: "50% 50%"}, @@ -169,6 +173,7 @@ ZoominListView.prototype.remove = function(widget) { var toWidgetDomNode = toWidget && toWidget.findFirstDomNode(); // Set up the tiddler we're moving back in if(toWidgetDomNode) { + $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler"); $tw.utils.setStyle(toWidgetDomNode,[ {display: "block"}, {transformOrigin: "50% 50%"},