fix to work with bootstrap modals

Fixes issue where chosen elements that were initialized in a hidden modal, and then displayed, are shown with the proper width/visibility.