From 0b6c229b6cec2329752013393e83ebd122e3d2eb Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 9 Jun 2015 17:41:55 +0200 Subject: Define the popup translation in the stylesheet, not in the JS code This allows us to autoprexfix the property, which is needed for Safari support (see http://caniuse.com/#feat=transforms2d). Fixes #178. --- client/lib/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/lib') diff --git a/client/lib/popup.js b/client/lib/popup.js index 6193cb13..3813319d 100644 --- a/client/lib/popup.js +++ b/client/lib/popup.js @@ -52,6 +52,7 @@ Popup = { hasPopupParent: self._hasPopupParent(), title: self._getTitle(popupName), openerElement: openerElement, + depth: self._stack.length, offset: self._getOffset(openerElement), dataContext: this.currentData && this.currentData() || this }); @@ -69,8 +70,7 @@ Popup = { self.current = Blaze.renderWithData(self.template, function() { self._dep.depend(); return _.extend(self._stack[self._stack.length - 1], { - stack: self._stack, - containerTranslation: (self._stack.length - 1) * -300 + stack: self._stack }); }, document.body); -- cgit v1.2.3-1-g7c22