hide empty place holder column
This commit is contained in:
parent
0004e06a5d
commit
b46f968665
|
@ -854,12 +854,12 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
|
||||||
XhtmlNode tbl = new XhtmlNode(NodeType.Element, "table");
|
XhtmlNode tbl = new XhtmlNode(NodeType.Element, "table");
|
||||||
tbl.setAttribute("class", "grid");
|
tbl.setAttribute("class", "grid");
|
||||||
XhtmlNode tr = tbl.tr();
|
XhtmlNode tr = tbl.tr();
|
||||||
tr.td().style("display: hidden").tx("-"); // work around problem with empty table rows
|
tr.td().style("display: none").tx("-"); // work around problem with empty table rows
|
||||||
boolean add = addColumnHeadings(tr, grandChildren);
|
boolean add = addColumnHeadings(tr, grandChildren);
|
||||||
for (BaseWrapper v : p.getValues()) {
|
for (BaseWrapper v : p.getValues()) {
|
||||||
if (v != null) {
|
if (v != null) {
|
||||||
tr = tbl.tr();
|
tr = tbl.tr();
|
||||||
tr.td().style("display: hidden").tx("*"); // work around problem with empty table rows
|
tr.td().style("display: none").tx("*"); // work around problem with empty table rows
|
||||||
add = addColumnValues(res, tr, grandChildren, v, showCodeDetails, displayHints, path, indent) || add;
|
add = addColumnValues(res, tr, grandChildren, v, showCodeDetails, displayHints, path, indent) || add;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue