Updating modal-body max-height if it exceeds more than 1200px

Этот коммит содержится в:
Asaad Mahmood
2015-11-04 01:01:22 +05:00
родитель 25e6e9aca7
Коммит e4f7ed3ab1

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

@@ -37,7 +37,12 @@
<script>
window.setup_channel_page({{ .Props }});
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
$('.modal-body').css('max-height', $(window).height() - 200);
if($(window).height() > 1200){
$('.modal-body').css('max-height', 1000);
}
else {
$('.modal-body').css('max-height', $(window).height() - 200);
}
$('.modal-body').perfectScrollbar();
</script>
</body>