I am trying to open a popup at the screen's full width and height using the code below:
var params = 'width=' + screen.width + ', height=' + screen.height
+ ', top=0, left=0'
+ ',toolbar=no,scrollbars=no,status=no,menubar=no';
screenServiceFactory.windows[id] = window.open(location, id, params);
screen.height and screen.width accurately get my screen resolution, and the window opens up at position 0,0 ... but it's actually too large! There are a hundred or so in extra height and a few in extra width that bleed off the monitor. I've tried a bunch of different ways of detecting screen resolution and window sizing and read every stack overflow post on the topic but have been unable to produce a better result. What am I doing wrong?
I am noticing it doesn't account for reserved screen space such as osx side menu, windows start menu, etc... I want the window to have the same size as if a user maximized it.
- How can I open the window at full width and height for the monitor, with a similar feel to if the user clicked Maximize on the window