mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 17:28:18 +00:00
Merge pull request #1429 from pnstickne/wip-1400
DOM.visualBounds now includes scrollbars
This commit is contained in:
commit
bc1a24e970
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue