How to add an if condition so that nothing breaks, or otherwise solve this problem?
In general, there is a code:
function resizeHeight() { var height_wrap = $('#wrap_fixed').height() + 39; var result = $('.page .chord_text pre').css("min-height", height_wrap); }; resizeHeight(); $(window).resize(function() { resizeHeight(); }); It is necessary that it only works with a window width greater than 992px . And when the window width was changed (resize) worked again.