Fixing LHS scroll and Image previews

Этот коммит содержится в:
Asaad Mahmood
2015-11-30 22:27:45 +05:00
родитель c919bd9e52
Коммит be582b4fe3
4 изменённых файлов: 55 добавлений и 27 удалений

Просмотреть файл

@@ -173,6 +173,10 @@ export default class Sidebar extends React.Component {
this.updateScrollbar();
window.addEventListener('resize', this.handleResize);
if ($(window).width() > 768) {
$('.nav-pills__container').perfectScrollbar();
}
}
shouldComponentUpdate(nextProps, nextState) {
if (!Utils.areObjectsEqual(nextState, this.state)) {
@@ -199,6 +203,7 @@ export default class Sidebar extends React.Component {
windowWidth: Utils.windowWidth(),
windowHeight: Utils.windowHeight()
});
console.log('sad');
}
updateScrollbar() {
}