diff options
author | Adam Young <ayoung@redhat.com> | 2011-06-03 11:33:32 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people02.fedoraproject.org> | 2011-06-03 19:54:14 +0000 |
commit | 4080a03051b244c061fdc494dec67d3ee97f9a1a (patch) | |
tree | 97930a9514ceefaf19784df088c2e553586a9633 /install/ui/widget.js | |
parent | 403ed477b56695576e74f8fda1c9fc8b1df53700 (diff) | |
download | freeipa-4080a03051b244c061fdc494dec67d3ee97f9a1a.tar.gz freeipa-4080a03051b244c061fdc494dec67d3ee97f9a1a.tar.xz freeipa-4080a03051b244c061fdc494dec67d3ee97f9a1a.zip |
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.
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r-- | install/ui/widget.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js index 9cbd31f0a..c48d967e2 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) { |