Replaced setColumnCount(3) in onSizeChange