if (verticalScrollbar == ScrollbarMode.optional) {
Element vertical = getElement().findElementByName("#vertical-scrollbar");
if (newCount > displayItems) {
if (vertical == null) {
ElementType templateType = verticalScrollbarTemplate.getElementType().copy();
CustomControlCreator create = new CustomControlCreator((ControlType) templateType);
Element e = create.create(nifty, screen, scrollElement);
if (e.getHeight() < 23*2) { // ugly
nifty.removeElement(screen, e);
return;
}
subscribeVerticalScrollbar();