You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't a huge deal, but it would be nice to be able to avoid having the sidebar shift to the right when a Bootstrap modal is invoked. Bootstrap removes the scrollbar of the main viewport when a modal is opened, and thus the sidebar gets shifted to the right. It's not a functional issue, but aesthetically it is distracting.
Given all the magic Bootstrap uses behind the scenes there is no simple CSS fix to prevent the issue without causing other problems. Is there anything that could be added to allow the sidebar to detect removal of a scrollbar and compensate for that?
The text was updated successfully, but these errors were encountered:
If I understood correctly, it's the same issue like when we have a dynamic width sidebar which is closed and the window is resized. Then a little part of the sidebar is shown.
I'm not sure but, we may fix the both issues using $(window).on("resize", doTheMagic).
Would you like to fix this?
This fixes#19. When the window is resized, if the sidebar is in the closed state, we trigger the sidebar:close event, so the sidebar will be closed.
In previous versions, if the sidebar was having percentage sizes (height or/and width) it would appear on the window margin when the window would get resized.
Also, we now store the settings object reference in the `sidebar` data (jQuery).
This commit also fixes#22. 🔥
This isn't a huge deal, but it would be nice to be able to avoid having the sidebar shift to the right when a Bootstrap modal is invoked. Bootstrap removes the scrollbar of the main viewport when a modal is opened, and thus the sidebar gets shifted to the right. It's not a functional issue, but aesthetically it is distracting.
Given all the magic Bootstrap uses behind the scenes there is no simple CSS fix to prevent the issue without causing other problems. Is there anything that could be added to allow the sidebar to detect removal of a scrollbar and compensate for that?
The text was updated successfully, but these errors were encountered: