Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #69 from mkaring/1.4

ListBox bugfix
  • Loading branch information...
commit aee63cc91f8f631682e541e74ecc4b32d777857f 2 parents b9d244f + 71473a8
@void256 authored
View
3  nifty-controls/src/main/java/de/lessvoid/nifty/controls/ListBox.java
@@ -285,7 +285,8 @@ public int getWidth(final Element element, final T item) {
+ "ListBoxViewConverter to the ListBox.");
return 0;
}
- return element.getRenderer(TextRenderer.class).getFont().getWidth(item.toString());
+ final String resultText = element.getNifty().specialValuesReplace(item.toString());
+ return element.getRenderer(TextRenderer.class).getFont().getWidth(resultText);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.