This is similar to the redraw / redraw problem that is known to happen with the Safari layout.
You can fix this with a couple of JavaScript lines that you want to disable as soon as the content loads:
var sel = document.querySelector('#myElement') sel.style.display = 'run-in'; setTimeout(function () { sel.style.display = 'block'; }, 0);
This should redraw the window to the borders of its contents.
Replace '#myElement' with a CSS selector or CSS class to get your button. The trigger setting (as opposed to "none") prevents the element from flickering. The zero millisecond timeout value displayed on the screen is what actually causes the redraw.
Hope this helps.
source share