If you have ever developed a site that is centrally aligned that has a vertical scrollbar on some pages and not on others then I am sure you have come across this problem in Firefox. Basically the page layout appears to jump left and right when switching to a page that needs the scroll bar. This is especially troublesome in Ajax applications as sometimes Firefox will make it look like the entire page has reloaded because of this jump in client side page width.
There is a fix which will force the scrollbar gutter (notice I did not say scroll bar) to appear and, by doing that will prevent the jumping of the page. The good news is it’s actually really simple to implement.
After investigating about 10 different fixes, this one seems to be the most reliable, and causes the fewest side effects.
html
{
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
overflow:-moz-scrollbars-vertical !important;
}