Fix selection bug. Accept a parameter to disable autosizing.