2023-05-16 10:50:42 +08:00

15 lines
388 B
JavaScript

function setAutoHeight()
{
var height = $(window).height() - 105;
$('.auto-height').each(function()
{
var $this = $(this);
var offset = $this.data('offset') || 0;
$this.height(height - offset);
if($this.hasClass('main-row'))
{
$this.find('.side-col>.cell,.main-col>.cell').height(height - 20 - offset);
}
});
};