Skip to content

Commit

Permalink
Merge pull request #83 from naxa-developers/enhancement/projects-more…
Browse files Browse the repository at this point in the history
…-filter

enhancement/projects more filter
  • Loading branch information
royallsilwallz authored Apr 30, 2024
2 parents 35bf3ed + c10fa27 commit c04dbfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/views/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ export const MoreFilters = () => {

const { top, left, height, width } = filterElement.getBoundingClientRect();
const { height: containerHeight } = projectContainerElement.getBoundingClientRect();
setScrollHeight(window.scrollY);
setProjectContainerHeight(containerHeight);
const navbarHeight = document.getElementById('explore-nav').offsetHeight;
// calculate difference between explore project page and navbar to set popover overlay height
setProjectContainerHeight(containerHeight - navbarHeight);
setPosition({ top, left, height, width });
setScrollHeight(window.scrollY);
}, [filterElement, width, projectContainerElement]);

console.log(scrollHeight, 'scroll height');

useEffect(() => {
const contentHeight =
document.getElementById('explore-nav').offsetHeight +
Expand Down

0 comments on commit c04dbfb

Please sign in to comment.