I have made a splitter which works perfectly in Chrome.
However, it does not work in Safari. But if we change the height in .handle-inner
from 100%
to 400px
, we will observe that the splitter (from the top down to 400px
) becomes draggable. That means it is height:100%
which did not work in Safari.
Does anyone know how to amend the code to make the splitter work in both Chrome and Safari?
Edit 1:
I made a more complex example which has similar structure as my real program. In my real program, I do not fix the height as 500px
, I use the whole screen, and don't want to exceed it. Here is the splitter which works perfectly in Chrome, but height:100%
does not work in Safari.
Here is the version with height: 100vh
. We could see the height is too much in both Chrome and Safari. However, we do NOT know how to set max-height
.