float availableWidth = width - background.getLeftWidth() - background.getRightWidth();
int numGlyphs = font.computeVisibleGlyphs(items[selection], 0, items[selection].length(), availableWidth);
bounds.set(font.getBounds(items[selection]));
float textY = (int)(height / 2) + (int)(bounds.height / 2);
font.setColor(fontColor.r, fontColor.g, fontColor.b, fontColor.a * parentAlpha);
font.draw(batch, items[selection], x + background.getLeftWidth(), y + textY, 0, numGlyphs);
}
// calculate screen coords where list should be displayed
ScissorStack.toWindowCoordinates(stage.getCamera(), batch.getTransformMatrix(), screenCoords.set(x, y));
}