Skip to content

Commit 428a0d9

Browse files
Fixed problem for offcancas cart where the body element shifts over the whole page and nothing can be seen or clicked anymore.
1 parent 0a96a70 commit 428a0d9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Presentation/SmartStore.Web/Scripts/public.offcanvas-cart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,11 @@ var ShopBar = (function ($) {
396396
cnt.find('.offcanvas-cart-footer').remove();
397397
cnt.find('.offcanvas-cart-external-checkout').remove();
398398
cnt.prepend(data);
399+
400+
// INFO: Hack to force redrawing for edge on androids. Else the body element shifts over the whole page and nothing can be seen or clicked anymore.
401+
if (Modernizr.touchevents && /Edg/.test(navigator.userAgent)) {
402+
$('#footer').toggleClass('force-redraw');
403+
}
399404
},
400405
complete: function (jqXHR, textStatus) {
401406
tool.removeClass("loading").addClass("loaded");

src/Presentation/SmartStore.Web/Themes/Flex/Content/_misc.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@
160160
display: -webkit-box !important;
161161
display: -ms-flexbox !important;
162162
}
163+
164+
.force-redraw::before {
165+
content: ""
166+
}
167+
163168
//
164169
// Vars
165170
// -------------------------------------------------

0 commit comments

Comments
 (0)