brianreavis/selectize.js — pull request #305 by Musaffa (2014-02-24 21:44:46+00:00)
Title: optgroup_columns plugin: subtract scrollbar width from the dropdown content

With more than two option groups in 'optgroup_columns' plugin, scroll bar pushes the third and fourth etc groups to another row which could easily fit into the first row. It happens because the width of the drop down content doesn't take into account of the scroll bar width.
Example use of this plugin in http://brianreavis.github.io/selectize.js/ has this problem where 'Audi' group gets pushed to a new row unnecessarily.
To find scroll bar width [this snippet](http://stackoverflow.com/a/19015262/479407) is used. Works on Chrome, Firefox and Opera.