Skip to content

Commit

Permalink
Misc fix dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
charandeepsinghb committed Feb 4, 2024
1 parent 9a550c4 commit 62c6b1d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,13 @@ function changeScroll(isOn) {
baniSection.style.columnWidth = '100vw';
}

/*********************** Set height for bani section *************************/
/*********************** Set initial height width for bani section *************************/

function setHeightForFixed() {
function setHeightWidthForFixed() {
baniSection.style.height = (window.innerHeight * 0.85) + "px";
// baniSection.style.width = (window.innerWidth * 0.99) + "px";
document.getElementsByClassName("configBottom")[0].style.height = (window.innerHeight * 0.1) + "px"
baniSection.style.width = (window.innerWidth * 0.98) + "px";
const configBottomElm = document.getElementsByClassName("configBottom")[0];
configBottomElm.style.height = (window.innerHeight * 0.1) + "px";
configBottomElm.style.marginBottom = (window.innerHeight * 0.1) + "px";
}
setHeightForFixed();
setHeightWidthForFixed();

0 comments on commit 62c6b1d

Please sign in to comment.