From 4080a03051b244c061fdc494dec67d3ee97f9a1a Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 3 Jun 2011 11:33:32 -0400 Subject: dialog scrolling table Tables on the dialog page need to have the scrolling set but should not resize with the main window, since their window is a JQuery UI dialog. --- install/ui/widget.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 9cbd31f0..c48d967e 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1060,7 +1060,6 @@ IPA.table_widget = function (spec) { that.current_page = 1; that.total_pages = 1; that.page_length = spec.page_length; - that.columns = $.ordered_map(); that.get_columns = function() { @@ -1298,13 +1297,12 @@ IPA.table_widget = function (spec) { }; that.resize = function(){ - if (that.scrollable){ - that.tbody.attr('overflow-y', 'auto'); - that.tbody.height("auto"); - var table_max_height = $(window).height() - - IPA.reserved_screen_size; - that.tbody.height(table_max_height); - } + that.tbody.attr('overflow-y', 'auto'); + + var win = $(window); + var table_max_height = win.height() - + IPA.reserved_screen_size; + that.tbody.height(table_max_height); }; that.load = function(result) { -- cgit