Fix select2 dropdown width to auto adjust for content. Fixes #3286

Fixes #3675