From 89eefbe46c0cb8d6c1865ec94b7afeb59c5ff3f0 Mon Sep 17 00:00:00 2001
From: Fabio Comuni <fabrix.xm@gmail.com>
Date: Tue, 19 Jul 2011 16:34:27 +0200
Subject: [PATCH] Fix style and scrollbar

---
 include/acl.js                    | 2 +-
 view/theme/duepuntozero/style.css | 6 +++---
 view/theme/loozah/style.css       | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/acl.js b/include/acl.js
index 41b9b19064..a0a1f5dd82 100644
--- a/include/acl.js
+++ b/include/acl.js
@@ -11,7 +11,7 @@ function ACL(backend_url, preset){
 	that.deny_cid  = (preset[2] || []);
 	that.deny_gid  = (preset[3] || []);
 	that.group_uids = [];
-	that.nw = 5; that.nh = 5;
+	that.nw = 4; //items per row. should be calulated from #acl-list.width
 	
 	that.list_content = $("#acl-list-content");
 	that.item_tpl = unescape($(".acl-list-item[rel=acl-template]").html());
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css
index 314fb5e754..0d940992b9 100644
--- a/view/theme/duepuntozero/style.css
+++ b/view/theme/duepuntozero/style.css
@@ -1490,7 +1490,7 @@ input#dfrn-url {
 }
 
 #acl-wrapper {
-	width: 805px;
+	width: 690px;
 	float:left;
 }
 #acl-search {
@@ -1516,14 +1516,14 @@ input#dfrn-url {
 }
 
 #acl-list {
-	width: 805px;
 	height: 210px;
 	border: 1px solid #cccccc;
 	clear: both;
 	margin-top: 30px;
+	overflow: auto;
 }
 #acl-list-content {
-	overflow: auto;
+	
 }
 .acl-list-item {
 	display: block;
diff --git a/view/theme/loozah/style.css b/view/theme/loozah/style.css
index 016b9d837b..eac4c4618e 100644
--- a/view/theme/loozah/style.css
+++ b/view/theme/loozah/style.css
@@ -1568,7 +1568,7 @@ padding: 5px 10px 0px;
 }
 
 #acl-wrapper {
-	width: 805px;
+	width: 690px;
 	float:left;
 }
 #acl-search {
@@ -1594,14 +1594,14 @@ padding: 5px 10px 0px;
 }
 
 #acl-list {
-	width: 805px;
 	height: 210px;
 	border: 1px solid #cccccc;
 	clear: both;
 	margin-top: 30px;
+	overflow: auto;
 }
 #acl-list-content {
-	overflow: auto;
+
 }
 .acl-list-item {
 	display: block;