Skip to content

Commit

Permalink
Updated the click event on sidebar to re calculat the height
Browse files Browse the repository at this point in the history
  • Loading branch information
teshukatepalli1 committed Nov 17, 2023
1 parent 6601661 commit 8f2bd63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/Blog/Blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ function setSidebarMaxHeight() {

function setSidebarHeight() {
window.addEventListener('resize', setSidebarMaxHeight);
window.addEventListener('click', setSidebarMaxHeight);
}

export default async function buildAutoBlocks(block) {
Expand Down
1 change: 1 addition & 0 deletions templates/Default/Default.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function setSidebarMaxHeight() {

function setSidebarHeight() {
window.addEventListener('resize', setSidebarMaxHeight);
window.addEventListener('click', setSidebarMaxHeight);
}

export default function buildAutoBlocks(block) {
Expand Down
1 change: 1 addition & 0 deletions templates/News/News.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ function setSidebarMaxHeight() {

function setSidebarHeight() {
window.addEventListener('resize', setSidebarMaxHeight);
window.addEventListener('click', setSidebarMaxHeight);
}

export default async function buildAutoBlocks(block) {
Expand Down

0 comments on commit 8f2bd63

Please sign in to comment.