When select is hidden calculate width is returning 0.  Added logic to use previous width calculation when offsetWidth is calculated to be 0.
Merge branch 'widthFix'