From 3e00d788ef11885d2b4c496fa9dca18c20ad5284 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Wed, 8 Sep 2010 14:05:19 +0000
Subject: [PATCH] In listbox "tree" (domain | report) make sure we get
 consistent view of whole width as in "flat" mode. Add styling for "No result"
 & "stats" bottom table rows.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38205 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/ListBox_asHTML.xml          |  7 ++++---
 .../erp5_xhtml_style/erp5_listbox.css.xml        | 16 +++++++++++++---
 .../ERP5/bootstrap/erp5_xhtml_style/bt/revision  |  2 +-
 3 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
index 58bb21f998..ea0b123128 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
@@ -165,7 +165,7 @@
   </div>\n
 \n
   <div class="listbox-content"  \n
-       tal:attributes="class python: test(not is_domain_tree_mode, \'listbox-content maximal-width\', \'listbox-content auto-width\')">\n
+       tal:attributes="class python: test(not is_domain_tree_mode, \'listbox-content maximal-width\', \'listbox-content listbox-content-fixed-width\')">\n
 \n
     <div class="listbox-head">\n
 \n
@@ -469,8 +469,9 @@
             \n
             <!-- No results. -->\n
             <tr tal:condition="python: total_line == 0 and not hide_rows_on_no_search_criterion">\n
-              <td tal:attributes="colspan python: len(here.getSearchValueList()) + 1">\n
-                <span class="listbox_no_result" i18n:translate="" i18n:domain="ui">\n
+              <td tal:attributes="colspan python: len(here.getSearchValueList()) + 1"\n
+                  class="listbox-table-no-result-row">\n
+                <span i18n:translate="" i18n:domain="ui">\n
                   No result.\n
                 </span>\n
               </td>\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml
index e9b1c4cfe5..38ecfd9a35 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml
@@ -402,7 +402,7 @@ div.listbox-body{\n
 \n
 div.listbox-tree{\n
   margin-right: 8px;\n
-  width: auto;\n
+  max-width: 10%;\n
   float: left;\n
 }\n
 \n
@@ -420,8 +420,18 @@ div.float-right{\n
   float:right;\n
 }\n
 \n
-div.auto-width{\n
-  width:auto;\n
+div.listbox-content-fixed-width{\n
+   width:90%;\n
+}\n
+\n
+table.listbox td.listbox-table-no-result-row{\n
+  border: 1px solid #3D6474;\n
+  text-align:center;\n
+}\n
+\n
+table.listbox tr.listbox_stat_line{\n
+  border-top: 1px solid #3D6474;\n
+\n
 }\n
 \n
 \n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 7ccfcb14c5..f03187e185 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-997
\ No newline at end of file
+998
\ No newline at end of file
-- 
2.30.9