Use col-scrollable for columns that need fixed height

This commit is contained in:
2016-11-09 17:02:58 +01:00
parent 2f57c9c037
commit 40ecbe2135
3 changed files with 6 additions and 14 deletions

View File

@@ -131,3 +131,9 @@
$('#modal').on('hidden.bs.modal', function () {
$("#modal .modal-body").html('');
});
// Set height of shot-list and item details so we can scroll inside them
$(window).on('load resize', function(){
var window_height = $(this).height() - 50; // header is 50px
$('.col-scrollable').css({'height': window_height});
});

View File

@@ -135,11 +135,4 @@ script.
handleSelector: ".col-splitter",
resizeHeight: false
});
// Set height of shot-list and item details so we can scroll inside them
$(window).on('load resize', function(){
var window_height = $(window).height() - 50; // header is 50px
$('#shot-list').css({'height': window_height});
$('#item-details').css({'height': window_height});
});
| {% endblock footer_scripts %}

View File

@@ -51,11 +51,4 @@ script.
handleSelector: ".col-splitter",
resizeHeight: false
});
$(window).on('load resize', function(){
var window_height = $(window).height() - 50;
var task_list = document.getElementById('task-list');
$('#task-list').css({'height': window_height});
$('#item-details').css({'height': window_height});
});
| {% endblock %}