summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-01 12:14:53 -0400
committerAdam Young <ayoung@redhat.com>2011-06-02 14:28:24 -0400
commit7486a332211ed13318c0a689657cb4ff7e7d25a3 (patch)
tree8a6615df0fcd165cede3f7674be407a30516d35e /install/ui/entity.js
parent585083c1d7a0069579d45b17adb39ad8f522c3f6 (diff)
downloadfreeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.tar.gz
freeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.tar.xz
freeipa-7486a332211ed13318c0a689657cb4ff7e7d25a3.zip
scrollable content areas
Turn off the side scroll bars for pages. Resizes the table when the browser resizes For stables, the rows scroll, but not the header. For details, the content area scrolls. Reserves 400 picesl for the header/ footer. Resize is only done on reload
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 030bcb016..5df56b1a6 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -130,6 +130,15 @@ IPA.facet = function (spec) {
return $('.content', that.container);
};
+ that.resize = function(){
+ var facet_content = $('.facet-content', that.container);
+ facet_content.css("height", 'auto');
+ facet_content.css('overflow-y', 'auto');
+
+ var content_max_height = $(window).height() -
+ IPA.reserved_screen_size;
+ facet_content.css('height',content_max_height);
+ };
that.on_error = function(xhr, text_status, error_thrown) {
if (that.entity.redirect_facet) {
@@ -194,6 +203,10 @@ IPA.table_facet = function(spec) {
return that;
};
+ that.resize = function(){
+ that.table.resize();
+ };
+
var columns = spec.columns || [];
for (var i=0; i<columns.length; i++) {
var column_spec = columns[i];