From 48ccec30ab1e5eca0b01118f3170a9eeac1f5e15 Mon Sep 17 00:00:00 2001 From: Tom Doan Date: Sun, 12 Feb 2017 16:17:34 +0800 Subject: [PATCH] Fix missing right border in some cases --- dist/js/jquery.prettydropdowns.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/js/jquery.prettydropdowns.js b/dist/js/jquery.prettydropdowns.js index 655e992..78d8aa8 100644 --- a/dist/js/jquery.prettydropdowns.js +++ b/dist/js/jquery.prettydropdowns.js @@ -1,5 +1,5 @@ /*! - * jQuery Pretty Dropdowns Plugin v3.1.1 by T. H. Doan (http://thdoan.github.io/pretty-dropdowns/) + * jQuery Pretty Dropdowns Plugin v3.1.2 by T. H. Doan (http://thdoan.github.io/pretty-dropdowns/) * * jQuery Pretty Dropdowns by T. H. Doan is licensed under the MIT License. * Read a copy of the license in the LICENSE file or at @@ -192,7 +192,8 @@ $clone.remove(); } // Set dropdown width and event handler - $dropdown.children('li').width(nWidth).click(function() { + // Add 0.5px slack to prevent missing right border with scrollbar + $dropdown.children('li').width(nWidth+0.5).click(function() { var $li = $(this); // Only update if different value selected if ($dropdown.hasClass('active') && $li.data('value')!==$dropdown.children('li.selected').data('value')) {