If you there are such problems with resising, it's a simple solution to just skip innerwidth or other calculations and display the window with the specified width/height... screen.width or other type calculations you see are done just because the JS tries to display pop up CENTERED on your monitor. If you skip these calculations and just set
wsss=0; hsss=0;
above window.open call, it should display it in the left upper corner and that's all...
Yes, there is also a sense in scrollbars exactly because it's not know how browser will display the pop-up... having errors like yours, user could try to resize the window though if he doesn't see the picture in full.
Scrollbars are not so important in general, and it is allowed they both are appearing; but it is also important window has an approximate size of the picture so the user sees at least the 90% of the image itself. It's not possible to know all cases of course, so scrollbars should be kept, both... |