summaryrefslogtreecommitdiffstats
path: root/client/lib/popup.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-09 17:41:55 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-09 17:41:55 +0200
commit0b6c229b6cec2329752013393e83ebd122e3d2eb (patch)
tree557c1df1d21509e0ce337bd738fc74d154696667 /client/lib/popup.js
parent270236363abbfec7ae50a4545721d19ac37fcfe0 (diff)
downloadwekan-0b6c229b6cec2329752013393e83ebd122e3d2eb.tar.gz
wekan-0b6c229b6cec2329752013393e83ebd122e3d2eb.tar.bz2
wekan-0b6c229b6cec2329752013393e83ebd122e3d2eb.zip
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.
Diffstat (limited to 'client/lib/popup.js')
-rw-r--r--client/lib/popup.js4
1 files changed, 2 insertions, 2 deletions
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);