Skip to content

Commit

Permalink
fix height calcul error
Browse files Browse the repository at this point in the history
  • Loading branch information
LPoin committed Jan 22, 2025
1 parent 2161fe3 commit 27276dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/extension/components/table/PlotsSelectionTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ function PlotsSelectionTable({
const ulSize = document.querySelector(".plots-selection .nav").clientHeight;
// Row height min 35px
const rowElement = document.querySelector(".plots-selection .react-grid-Row");
const rowHeight = rowElement ? rowElement.style.height : 35;
const rowHeight = rowElement ? parseInt(rowElement.style.height, 10) : 35;
// add margin if needed to parent to see all the panel on top of footer
const tabElement = document.querySelector(".plots-selection .tab-content");
parent.children.length > 2 ? tabElement.style.marginBottom = "50px" : tabElement.style.marginBottom = "";

parent.children.length > 2 ? tabElement.style.marginBottom = "50px" : tabElement.style.marginBottom = "";
// Calcul tab height needed to display.
// +30 add a security bottom margin to avoid scrollbar.
// 200 is the minimum height no matter content.
Expand Down

0 comments on commit 27276dd

Please sign in to comment.