From a0f35aba3f65da61593fe3bd5f1b0e2a276a1618 Mon Sep 17 00:00:00 2001 From: Alex Rice Date: Fri, 12 Apr 2013 02:57:03 +0000 Subject: [PATCH] Remove inline styles --- select2.css | 12 ++++++++++++ select2.js | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/select2.css b/select2.css index 7783e4e5..caaac939 100644 --- a/select2.css +++ b/select2.css @@ -628,6 +628,18 @@ disabled look for disabled choices in the results dropdown width: 1px; } +.select2-display-none { + display: none; +} + +.select2-measure-scrollbar { + position: absolute; + top: -10000px; + left: -10000px; + width: 100px; + height: 100px; + overflow: scroll; +} /* Retina-ize icons */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { diff --git a/select2.js b/select2.js index 09b0ffa0..779569cf 100644 --- a/select2.js +++ b/select2.js @@ -96,7 +96,7 @@ the specific language governing permissions and limitations under the Apache Lic return k >= 112 && k <= 123; } }, - MEASURE_SCROLLBAR_TEMPLATE = "
"; + MEASURE_SCROLLBAR_TEMPLATE = "
"; $document = $(document); @@ -1628,11 +1628,11 @@ the specific language governing permissions and limitations under the Apache Lic "class": "select2-container" }).html([ "", - "  ", + "  ", "
" , "
", "", - "