summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-11-03 20:27:38 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-11-03 20:27:38 +0500
commit6f1857f95bf5746d7774a9f2dd1c3ccbfab8f07b (patch)
tree3dfc04905ce1dd38af903b43938c2e49f9dde033 /web
parentc49f3b3956fae1b00145568140c940d5fa053eb8 (diff)
downloadchat-6f1857f95bf5746d7774a9f2dd1c3ccbfab8f07b.tar.gz
chat-6f1857f95bf5746d7774a9f2dd1c3ccbfab8f07b.tar.bz2
chat-6f1857f95bf5746d7774a9f2dd1c3ccbfab8f07b.zip
Updating height code for tutorial screens.
Diffstat (limited to 'web')
-rw-r--r--web/react/components/tutorial/tutorial_intro_screens.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/react/components/tutorial/tutorial_intro_screens.jsx b/web/react/components/tutorial/tutorial_intro_screens.jsx
index 25fd18b49..8fc38b1e3 100644
--- a/web/react/components/tutorial/tutorial_intro_screens.jsx
+++ b/web/react/components/tutorial/tutorial_intro_screens.jsx
@@ -36,8 +36,6 @@ export default class TutorialIntroScreens extends React.Component {
AsyncClient.savePreferences([preference]);
}
componentDidMount() {
- const height = $(window).height() - 100;
- $('.tutorials__scroll').height(height);
$('.tutorials__scroll').perfectScrollbar();
}
createScreen() {
@@ -135,10 +133,14 @@ export default class TutorialIntroScreens extends React.Component {
);
}
render() {
+ const height = Utils.windowHeight() - 100;
const screen = this.createScreen();
return (
- <div className='tutorials__scroll'>
+ <div
+ className='tutorials__scroll'
+ style={{height}}
+ >
<div className='tutorial-steps__container'>
<div className='tutorial__content'>
<div className='tutorial__steps'>