Skip to content

Commit

Permalink
fixed problem with missing left column
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielŻuławski committed Jan 25, 2021
1 parent cea1173 commit 5ba600a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Grand.Web/Themes/VueTheme/Views/Shared/_ColumnsTwo.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,18 @@
</b-col>
</b-row>
<script asp-location="Footer">
var leftSide = document.querySelector('.generalLeftSide');
function LeftSideBar() {
if (991 > window.outerWidth) {
document.querySelector("#sidebar-mobile .b-sidebar-body").appendChild(leftSide);
} else {
document.getElementById("TwoColumns").appendChild(leftSide);
document.addEventListener("DOMContentLoaded", function () {
var leftSide = document.querySelector('.generalLeftSide');
function LeftSideBar() {
if (991 > (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth)) {
document.querySelector("#sidebar-mobile .b-sidebar-body").appendChild(leftSide);
} else {
document.getElementById("TwoColumns").appendChild(leftSide);
}
}
}
LeftSideBar();
window.addEventListener("resize", function () {
LeftSideBar();
}, false);
window.addEventListener("resize", function () {
LeftSideBar();
});
});
</script>

0 comments on commit 5ba600a

Please sign in to comment.