I am using Jasny Bootstrap for my sidebar but I want to make the main container not being pushed to the right side of the window but instead be squeezed in instead.
I notice that this this.slide(elements, offset, $.proxy(complete, this)) line on the OffCanvas.prototype.show is causing it to be pushed to the side.
I was able to make it "squeeze" but the animation is not working anymore. I added these lines on the OffCanvas.prototype.slide:
if (placement == 'left') {
placement = 'margin-left';
}
if (placement == 'right') {
placement = 'margin-right';
}
Here's a jsfiddle: https://jsfiddle.net/e02e1rwp/1/