I would like to improve this vertical splitter : http://jsbin.com/xuyosi/1/edit?html,css,js,output.
use cases:
As the site uses Bootstrap, when I use the splitter to expand Column-1, Column-2 comes under column-1 which I do not want, rather I want them to be near each other and the corresponding column width must increase.
Only upon screen resize/ mobile view I want those columns stacked upon each other and at that time the splitter must not be usable.
Ultimately, the solution to this must be: Detect 2 columns are near each other - If so: Allow column resize and do not push the column down while resizing.
Thanks in advance!
In Bootstrap the width of
.container
class responds on the screen width, below a screen width of 768px it is fluid, but smaller than 720 pixels. You can use that characteristics to turn the resizable function on or of:html
javascript
You probably also want that your columns adapt when the screen width changes:
Demo: http://www.bootply.com/zfNflrRg83
update
I think you can use a
container-fluid
class as shown beneath:and javascript: