From 2ace4c57d0a1b5d0030139c28d7d72e071d8b4d8 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 13 Jan 2017 11:24:34 +0100 Subject: prevent double scrollbar when we have a modal larger than the viewport --- view/theme/redbasic/css/style.css | 1 - view/theme/redbasic/js/redbasic.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index c6f075479..2c1276430 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -9,7 +9,6 @@ /* generals */ html { font-size: 100%; - overflow-x: hidden; } body { diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 3ff0c43ae..6bcdd131f 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -99,11 +99,13 @@ function makeFullScreen(full) { function toggleAside() { $('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left'); if($('main').hasClass('region_1-on')){ + $('html').css('overflow-x', ''); $('main').removeClass('region_1-on') $('#overlay').remove(); $('#left_aside_wrapper').trigger("sticky_kit:detach"); } else { + $('html').css('overflow-x', 'hidden'); $('main').addClass('region_1-on') $('
').appendTo('section'); $('#left_aside_wrapper').stick_in_parent({ -- cgit v1.2.3