From f54415dee5f519f81a08eab6add7ed0e10e3a1f4 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Thu, 30 Aug 2012 13:06:12 +0000 Subject: [PATCH] BIS-154: Add grey section line. Allow to extend property table to the whole width. SVN: 26487 --- .../web/client/application/ui/property/PropertyGrid.java | 1 + .../java/ch/systemsx/cisd/openbis/public/css/openbis.css | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property/PropertyGrid.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property/PropertyGrid.java index 818aee4daca..e3cad0ac38f 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property/PropertyGrid.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property/PropertyGrid.java @@ -191,6 +191,7 @@ public final class PropertyGrid extends Grid Element element = getCellFormatter().getElement(row, 0); element.setAttribute("colspan", "2"); element.setAttribute("class", "properties-sub-section"); + getCellFormatter().getElement(row, 1).setAttribute("style", "display: none"); addPropertiesToTable(props, row + 1); } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/css/openbis.css b/openbis/source/java/ch/systemsx/cisd/openbis/public/css/openbis.css index 4d3efde91fa..9821887a288 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/public/css/openbis.css +++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/css/openbis.css @@ -82,10 +82,11 @@ body,div,td,.default-text { .property-grid { table-layout: fixed; border-collapse: collapse; + width: 100%; } .property-grid td { - border: 1px solid #ffffff; + border-top: 1px solid #ffffff; padding: 3px 5px 3px 5px; vertical-align: top; } @@ -95,8 +96,9 @@ body,div,td,.default-text { background-color: #dddddd; } -.properties-sub-section { +td.properties-sub-section { background-color: #fff; + border-top: 1px solid grey; font-weight: normal; } -- GitLab