Skip to content

Commit

Permalink
Fixed but in treebox
Browse files Browse the repository at this point in the history
This bug caused the tree box item converter to generate elements with duplicated IDs
  • Loading branch information
mkaring committed Jan 4, 2013
1 parent e86dbd5 commit c558654
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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("*");
Expand Down

0 comments on commit c558654

Please sign in to comment.