Jasny Bootstrap jquery slide should not push container

64 views Asked by At

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/

0

There are 0 answers