From 677ad71b96640a76b6e857d9e3e509d70ad7a9ce Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 9 Sep 2018 19:44:27 +0200 Subject: fix some issues with latest notification improvements --- view/php/default.php | 4 ++-- view/tpl/notifications_widget.tpl | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/view/php/default.php b/view/php/default.php index 70b8daecf..60f3f6a6f 100644 --- a/view/php/default.php +++ b/view/php/default.php @@ -10,12 +10,12 @@
- +
- +
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index b37ef40da..9b3d7487e 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -7,11 +7,14 @@ $('.notifications-btn').click(function() { if($('#notifications_wrapper').hasClass('fs')) { $('#notifications_wrapper').prependTo('#' + notifications_parent); - $('body').css('overflow', 'auto'); + //undo scrollbar remove + $('section').css('height', ''); } else { $('#notifications_wrapper').prependTo('section'); - $('body').css('overflow', 'hidden'); + //remove superfluous scrollbar + //setting overflow to hidden here has issues with some browsers + $('section').css('height', '100vh'); } $('#notifications_wrapper').toggleClass('fs'); -- cgit v1.2.3