Permalink
Browse files

Fixed but in treebox

This bug caused the tree box item converter to generate elements with duplicated IDs
  • Loading branch information...
1 parent e86dbd5 commit c558654fe7f93c08cb01f1d6fb533bef4debce44 @mkaring mkaring committed Jan 4, 2013
@@ -41,7 +41,7 @@ public void display(final Element element, final TreeItem<T> item) {
final Element text = element.findElementByName("#tree-item-content");
final Label displayLabel = text.findNiftyControl("#label", Label.class);
if (displayLabel == null) {
- final LabelBuilder builder = new LabelBuilder("#label");
+ final LabelBuilder builder = new LabelBuilder(text.getId() + "#label");
builder.text(item.getValue().toString());
builder.textHAlign(ElementBuilder.Align.Left);
builder.width("*");

0 comments on commit c558654

Please sign in to comment.