Use appendedItems reference in getStyleForPosition()