draggable() : How to modify containment array with onResize ?
Hello,
I have a big container with 4 div blocs, my container and my div blocs width change when I resize my window. My problem is
to change the containment array when I resize window.
ex :
how to change myVar when I resize my window.
this script
doesn't work
$( "#DragContent" ).draggable({
containment:[-(myVar*NbDiv),0,0,0],
});
$( window ).resize(function() {
myVar=$(window).width();
}
Thanks for advice.