react-grid-layout / react-resizable

A simple React component that is resizable with a handle.

Home Page:https://strml.github.io/react-resizable/examples/1.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

z-index issue

sushilronghe99 opened this issue · comments

Bug

Problem Report

When the drag handle is set on the edge of the div; the drag handle gets overlapped by the first div. It does not take into account the z-index.
Example.

<div style={{minHeight:300,width:300}}>
                <div style={{backgroundColor:"green",minHeight:150}}></div>
                <div  style={{backgroundColor:"red",minHeight:150,position:'relative'}}>
                <Resizable position={'relative'} height={height} width={width} onResize={onResize} resizeHandles={['n']} >
                    
               </Resizable>
                </div>
            </div>

In this case the drag handle icon overlapping Green color div won't be visible. Even if we add a z-Index to the higher than the green color div the drag handle is not visible.

System Info

Node Version: v.16.14.2
Browser: Chrome
OS: Mac

Reproduction

Have not setup the sandbox but let me know if it is required.