NO BUG: Bug in Offcanvas widget (in container gap)

Browser: Chrome 114
OS: Windows
URL: fvvv – Try Bricks – t7b3ff1b

If we place the Offcanvas widget in a container, the Gap value of the container for the Offcanvas widget will be twice that of the other sections.

Please see the image below. In the image below, the Continer Gap value is set to 20.But if you look at the right side of the Toggle widget, the distance is more than 20px.

Gap

The important point here is that if we set the container’s gap value to 0, there will be no problem.

Watch the video below if needed.

Hey @HOSEIN,

thanks for your report.

This happens because the Offcanvas is not completely removed from the document flow (using display: none) even when it is not opened. Otherwise animating the Offcanvas would be way harder to achieve.

You should just move your Offcanvas element out of this container.

Best,

André

nice! thanks @aslotta