From 7836018b20db3057e8004f444e539c144477d116 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Fri, 3 Feb 2023 19:11:49 +0000 Subject: [PATCH] Revert to setting the faulty tc-storyview-zoomin-tiddler class for backwards compatibility --- core/modules/storyviews/zoomin.js | 5 +++++ 1 file changed, 5 insertions(+) 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%"},