Unity Player Displaying 1024x758 Game at 1128x850 for no apparent reason.

We have a game designer to be played in your browser using the unityPlayer. We have 1024x768 and 800x600 versions of the game. We have code in the .html file to check the browser space and choose the appropriate version.

	if (typeof unityObject != "undefined")
	{
		var w = window.innerWidth;
		var h = window.innerHeight;

		if (w >= 1024  h >= 768)
		{
			unityObject.embedUnity("unityPlayer", "Game1024x768.unity3d", 1024, 768, params);
		}
		else
		{
			unityObject.embedUnity("unityPlayer", "Game800x600.unity3d", 800, 600, params);
		}
	}

On every one of our office computers, this works fine. On a big screen it uses the 1024x768 version. On laptops and netbooks, it generally loads the 800x600 version. Even on our big screens, if we have a small browser window, it uses the 800x600 version.

So in general, it is working fine. No problem.

But on one computer (that has identical hardware specs, OS version, browser version, etc), whenever we load the game in chrome it displays the game at approximately 1128x850 resolution.

As a result, a lot of stuff is messed up and misaligned in the game.

On this same computer, the game is fine in Firefox. Also, if I shrink the Chrome window, forcing it to use 800x600, everything is fine. Lastly, if I run the game in fullscreen mode, it is fine.

Does anyone have any idea what could cause this kind of weird problem when running the game in Chrome?

Check if Chrome is not set to zoom the web pages.

Do you mean zoom like with the scroll wheel? I checked that and it wasn’t zoomed. Is there something else?

There is a zoom option on the settings menu.

I don’t think that’s it. Here are my chrome settings for zoom: