Skip to content

Commit

Permalink
fix: sideBar width creep
Browse files Browse the repository at this point in the history
  • Loading branch information
ssborbis committed Sep 11, 2023
1 parent aaf13f4 commit 3a29dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/searchbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ async function sideBarResize(o) {
// document.body.style.width = screen.width + "px";
document.body.width = null;
document.body.height = null;
document.body.getBoundingClientRect();
document.body.style.width = document.body.scrollWidth + "px";
//document.body.getBoundingClientRect();
document.body.style.width = Math.floor(document.body.getBoundingClientRect().width) + "px";

// simple resize when mini
if ( document.body.classList.contains('mini') ) {
Expand Down

0 comments on commit 3a29dc6

Please sign in to comment.