Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2016-04-01 10:17:14 -0400
committerFlorian Thienel2016-04-01 10:17:14 -0400
commit446ab4cd893bf367f8e39e0456fe4d3927d48bea (patch)
treeb2c84961931f7a91a69af812bef2ac862599d134
parentac3e1e7daab1a0945b943837056ae9290d282e16 (diff)
downloadorg.eclipse.mylyn.docs.vex-446ab4cd893bf367f8e39e0456fe4d3927d48bea.tar.gz
org.eclipse.mylyn.docs.vex-446ab4cd893bf367f8e39e0456fe4d3927d48bea.tar.xz
org.eclipse.mylyn.docs.vex-446ab4cd893bf367f8e39e0456fe4d3927d48bea.zip
show placeholder box for empty row
Signed-off-by: Florian Thienel <florian@thienel.org>
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
index 1709b3f0..3ccb5b22 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/visualization/CssBasedBoxModelBuilder.java
@@ -305,7 +305,12 @@ public class CssBasedBoxModelBuilder implements IBoxModelBuilder {
}
private IStructuralBox visualizeAsTableRow(final IElement element, final Styles styles, final Collection<VisualizeResult> childrenResults) {
- final TableRow row = visualizeChildrenAsStructure(element, styles, childrenResults, tableRow());
+ final TableRow row;
+ if (element.isEmpty()) {
+ row = tableRow(placeholderForEmptyNode(element, styles, paragraph(styles)));
+ } else {
+ row = visualizeChildrenAsStructure(element, styles, childrenResults, tableRow());
+ }
return wrapUpStructuralElementContent(element, styles, childrenResults, row);
}

Back to the top