summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings/user_settings_appearance.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-25 08:43:06 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-25 08:43:06 -0400
commitb03d8610de3b4e475c168522bc78e9ef857e64fb (patch)
tree1ac70f96d591a88fb025f25501ca5004d66f5f7d /web/react/components/user_settings/user_settings_appearance.jsx
parent5573df3013e686c69798caa01c9eafcbb553601c (diff)
downloadchat-b03d8610de3b4e475c168522bc78e9ef857e64fb.tar.gz
chat-b03d8610de3b4e475c168522bc78e9ef857e64fb.tar.bz2
chat-b03d8610de3b4e475c168522bc78e9ef857e64fb.zip
Fix acconut settings being scrolled to bottom when opened.
Diffstat (limited to 'web/react/components/user_settings/user_settings_appearance.jsx')
-rw-r--r--web/react/components/user_settings/user_settings_appearance.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/user_settings/user_settings_appearance.jsx b/web/react/components/user_settings/user_settings_appearance.jsx
index 7617f04d1..4372069e7 100644
--- a/web/react/components/user_settings/user_settings_appearance.jsx
+++ b/web/react/components/user_settings/user_settings_appearance.jsx
@@ -81,6 +81,8 @@ export default class UserSettingsAppearance extends React.Component {
$('#user_settings').off('hidden.bs.modal', this.handleClose);
this.props.updateTab('general');
+ $('.ps-container.modal-body').scrollTop(0);
+ $('.ps-container.modal-body').perfectScrollbar('update');
$('#user_settings').modal('hide');
},
(err) => {