1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Fix problem with recent zoomin changes

This commit is contained in:
Jermolene 2014-10-07 14:07:55 +01:00
parent 09b6540998
commit a0460c391b

View File

@ -54,6 +54,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) {
// Make the new tiddler be position absolute and visible so that we can measure it // 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.addClass(targetElement,"tc-storyview-zoomin-tiddler");
$tw.utils.setStyle(targetElement,[ $tw.utils.setStyle(targetElement,[
{display: "block"},
{transformOrigin: "0 0"}, {transformOrigin: "0 0"},
{transform: "translateX(0px) translateY(0px) scale(1)"}, {transform: "translateX(0px) translateY(0px) scale(1)"},
{transition: "none"}, {transition: "none"},
@ -153,6 +154,7 @@ ZoominListView.prototype.remove = function(widget) {
// Set up the tiddler that is being closed // Set up the tiddler that is being closed
$tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler");
$tw.utils.setStyle(targetElement,[ $tw.utils.setStyle(targetElement,[
{display: "block"},
{transformOrigin: "50% 50%"}, {transformOrigin: "50% 50%"},
{transform: "translateX(0px) translateY(0px) scale(1)"}, {transform: "translateX(0px) translateY(0px) scale(1)"},
{transition: "none"}, {transition: "none"},
@ -168,6 +170,7 @@ ZoominListView.prototype.remove = function(widget) {
if(toWidgetDomNode) { if(toWidgetDomNode) {
$tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler"); $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler");
$tw.utils.setStyle(toWidgetDomNode,[ $tw.utils.setStyle(toWidgetDomNode,[
{display: "block"},
{transformOrigin: "50% 50%"}, {transformOrigin: "50% 50%"},
{transform: "translateX(0px) translateY(0px) scale(10)"}, {transform: "translateX(0px) translateY(0px) scale(10)"},
{transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing},