Updating height code for tutorial screens.

This commit is contained in:
Asaad Mahmood
2015-11-03 20:27:38 +05:00
parent c49f3b3956
commit 6f1857f95b

View File

@@ -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'>