From e43bc565474556039fd7433fec8f1909cd320003 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 1 Jul 2011 15:41:40 +0530 Subject: [PATCH] resize file list on window.resize --- edgware/static/js/files/browse.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/edgware/static/js/files/browse.js b/edgware/static/js/files/browse.js index e3b7579..21085be 100644 --- a/edgware/static/js/files/browse.js +++ b/edgware/static/js/files/browse.js @@ -74,7 +74,14 @@ $(function() { }); + $(window).resize(function() { + var minuser = 300; + var winHeight = $(window).height(); + var listHeight = winHeight - minuser; + $('#fileList').css("height", listHeight + "px"); + }); + $(window).resize(); }); function getJQ(f) {