aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2017-05-23 15:10:45 +0300
committerGitHub <noreply@github.com>2017-05-23 15:10:45 +0300
commit77a0d562a330e15463e0cd29d1b87a5b312c8bf5 (patch)
treee34fb1f9b6d40b1123d46b5bb6470a4f7ac0e175 /client
parent7b506a70c89c83451b113a7549b6fbe2268b5b26 (diff)
downloadvaadin-framework-77a0d562a330e15463e0cd29d1b87a5b312c8bf5.tar.gz
vaadin-framework-77a0d562a330e15463e0cd29d1b87a5b312c8bf5.zip
New Tree component theme
Fixes #9310
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/TreeRendererConnector.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/TreeRendererConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/TreeRendererConnector.java
index 4540ce5d63..df0da24e99 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/TreeRendererConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/TreeRendererConnector.java
@@ -42,7 +42,9 @@ public class TreeRendererConnector
@Override
public void render(RendererCellReference cell, String htmlString) {
- String content = SafeHtmlUtils.htmlEscape(htmlString);
+ String content = "<span class=\"v-captiontext\">" +
+ SafeHtmlUtils.htmlEscape(htmlString)
+ + "</span>";
JsonObject row = getParent().getParent().getDataSource()
.getRow(cell.getRowIndex());
@@ -50,7 +52,7 @@ public class TreeRendererConnector
String resourceId = row.getString("itemIcon");
Element element = getConnection()
.getIcon(getResourceUrl(resourceId)).getElement();
- content = element.getString() + " " + content;
+ content = element.getString() + content;
}
super.render(cell, content);
}