Skip to content
Discussion options

You must be logged in to vote

We had the same issue (we had also developed a nav menu dependent on temporarily overlaying the panels below). We got a solution from Grafana that makes it work again when put in the main body of the JS code:

// Z-INDEX FIX - all panels will have a greater Z-index than those below
// Get all panels
const panels = [...document.querySelectorAll('.react-grid-item')];
// Set the ending Z-index value to one more than the number of panels
let zIndex = panels.length + 1;
// Loop thru the panels backwards, set the Z-index and decrement
for (const panel of panels) {
panel.style.zIndex = zIndex--;
}

Replies: 3 comments 3 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
3 replies
@usugrad
Comment options

@psheehymn
Comment options

@usugrad
Comment options

Answer selected by usugrad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants