Merge pull request #1429 from pnstickne/wip-1400

DOM.visualBounds now includes scrollbars
This commit is contained in:
Richard Davey 2014-12-11 21:58:55 +00:00
commit bc1a24e970

View file

@ -336,11 +336,13 @@ Phaser.Device.whenReady(function (device) {
if (treatAsDesktop)
{
// PST- When scrollbars are not included this causes upstream issues in ScaleManager.
// So reverted to the old "include scrollbars."
var clientWidth = function () {
return document.documentElement.clientWidth;
return Math.max(window.innerWidth, document.documentElement.clientWidth);
};
var clientHeight = function () {
return document.documentElement.clientHeight;
return Math.max(window.innerHeight, document.documentElement.clientHeight);
};
// Interested in area sans-scrollbar