summaryrefslogtreecommitdiffstats
path: root/client/components/main/popup.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-01 17:56:00 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-03 06:46:41 +0200
commit7f6929608c6423505778722dd4cb7bf8e837729e (patch)
tree67b1cca95c23e79e939a579c651ecbe42e37c8dd /client/components/main/popup.js
parent5f09c0ce406075bbd1ed9061f444e615375aa2d3 (diff)
downloadwekan-7f6929608c6423505778722dd4cb7bf8e837729e.tar.gz
wekan-7f6929608c6423505778722dd4cb7bf8e837729e.tar.bz2
wekan-7f6929608c6423505778722dd4cb7bf8e837729e.zip
Work on the user account system
Allow a user to modifies its name, username, initials, and password. Fixes username handling on sandstorm. Fixes #149.
Diffstat (limited to 'client/components/main/popup.js')
-rw-r--r--client/components/main/popup.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/components/main/popup.js b/client/components/main/popup.js
index 48847525..8672d08a 100644
--- a/client/components/main/popup.js
+++ b/client/components/main/popup.js
@@ -31,6 +31,19 @@ Popup.template.events({
},
'click .js-confirm': function() {
this.__afterConfirmAction.call(this);
+ },
+ // This handler intends to solve a pretty tricky bug with our popup
+ // transition. The transition is implemented using a large container
+ // (.content-container) that is moved on the x-axis (from 0 to n*PopupSize)
+ // inside a wrapper (.container-wrapper) with a hidden overflow. The problem
+ // is that sometimes the wrapper is scrolled -- even if there are no
+ // scrollbars. This happen for instance when the newly opened popup has some
+ // focused field, the browser will automatically scroll the wrapper, resulting
+ // in moving the whole popup container outside of the popup wrapper. To
+ // disable this behavior we have to manually reset the scrollLeft position
+ // whenever it is modified.
+ 'scroll .content-wrapper': function(evt) {
+ evt.currentTarget.scrollLeft = 0;
}
});