From 56a22050e1128c03d09181c8985b244879c289cb Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Sep 2010 10:46:58 +0000 Subject: [PATCH] listen to more resize events --- pandora/static/js/pandora.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pandora/static/js/pandora.js b/pandora/static/js/pandora.js index 2e4665839..14e708612 100755 --- a/pandora/static/js/pandora.js +++ b/pandora/static/js/pandora.js @@ -350,7 +350,14 @@ app.constructApp = function() { size: app.ui.groups[4].size }, ], + id: 'browser', orientation: 'horizontal' + }) + .bindEvent('resize', function(event, data) { + Ox.print('resizing groups...') + $.each(app.$ui.groups, function(i, list) { + list.resize(); + }); }), resizable: true, resize: [96, 112, 128, 144, 160, 176], @@ -381,6 +388,7 @@ app.constructApp = function() { $.each(app.$ui.groups, function(i, list) { list.resizeColumn('name', widths[i].column); }); + app.$ui.list.resize(); }) } ], @@ -580,6 +588,11 @@ app.constructList = function(view) { }), callback); }, sort: app.user.ui.sort + }) + .bindEvent({ + resize: function(event, data) { + $list.resize(); + } }); } else if (view == 'icons') { $list = new Ox.IconList({