From b3ec034788cb5feca262074f49bc205d322e8ed9 Mon Sep 17 00:00:00 2001 From: Martin Bratvanov <3735861+heminei@users.noreply.github.com> Date: Thu, 26 Jul 2018 13:44:35 +0300 Subject: [PATCH 1/2] Fixed bug with percent with holder --- jquery.mCustomScrollbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.mCustomScrollbar.js b/jquery.mCustomScrollbar.js index 4c9a0b2..bd3d8e8 100644 --- a/jquery.mCustomScrollbar.js +++ b/jquery.mCustomScrollbar.js @@ -1024,7 +1024,7 @@ and dependencies (minified). h=mCSB_container[0].scrollHeight,w=mCSB_container[0].scrollWidth; if(h>contentHeight){contentHeight=h;} if(w>contentWidth){contentWidth=w;} - return [contentHeight>mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]; + return [contentHeight>Math.round(mCustomScrollBox.height()),contentWidth>Math.round(mCustomScrollBox.width())]; }, /* -------------------- */ @@ -2455,4 +2455,4 @@ and dependencies (minified). }); -}))})); \ No newline at end of file +}))})); From 447f585df65af6882a11cf98fc758bff610749f4 Mon Sep 17 00:00:00 2001 From: Martin Bratvanov <3735861+heminei@users.noreply.github.com> Date: Thu, 26 Jul 2018 13:45:50 +0300 Subject: [PATCH 2/2] Fixed bug with percent width holder --- js/uncompressed/jquery.mCustomScrollbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/uncompressed/jquery.mCustomScrollbar.js b/js/uncompressed/jquery.mCustomScrollbar.js index 4c9a0b2..bd3d8e8 100644 --- a/js/uncompressed/jquery.mCustomScrollbar.js +++ b/js/uncompressed/jquery.mCustomScrollbar.js @@ -1024,7 +1024,7 @@ and dependencies (minified). h=mCSB_container[0].scrollHeight,w=mCSB_container[0].scrollWidth; if(h>contentHeight){contentHeight=h;} if(w>contentWidth){contentWidth=w;} - return [contentHeight>mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]; + return [contentHeight>Math.round(mCustomScrollBox.height()),contentWidth>Math.round(mCustomScrollBox.width())]; }, /* -------------------- */ @@ -2455,4 +2455,4 @@ and dependencies (minified). }); -}))})); \ No newline at end of file +}))}));