autoSetItemPosition should take height and width into account