hide empty place holder column

This commit is contained in:
Grahame Grieve 2023-07-07 05:00:59 +10:00
parent 0004e06a5d
commit b46f968665
1 changed files with 2 additions and 2 deletions

View File

@ -854,12 +854,12 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
XhtmlNode tbl = new XhtmlNode(NodeType.Element, "table");
tbl.setAttribute("class", "grid");
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);
for (BaseWrapper v : p.getValues()) {
if (v != null) {
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;
}
}