nathancahill / split

Unopinionated utilities for resizeable split views
https://split.js.org/
MIT License
6.1k stars 449 forks source link

[suggestion] Auto hide style of gutter #100

Open easyfrog opened 6 years ago

easyfrog commented 6 years ago

In my project I don't want the "gutter" occupy any pixels in the view. But When I set the gutterSize to 0. It will not be able to dragged.

So is there a way to "Auto hide" the gutter?

the process maybe like this:

div A and div B both have 50% width: 111

And when the cursor moves close to the seam. the gutter will appearance Overlay the seam Not inside between divA and divB. 222

How to implement the feature?

frumbert commented 6 years ago

See, I'd prefer if there were methods for showing the gutters mySplitter.unlock() and hiding the gutters mySplitter.lock() which would programatically let me enter an editing mode for the resize of panes.