MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / getWindowResolution

Method getWindowResolution

src/scale-manager/ResizeHelper.js:111–124  ·  view source on GitHub ↗

* Sets the window width and window height values of the ResizeHelper. * @memberof ResizeHelper

()

Source from the content-addressed store, hash-verified

109 * @memberof ResizeHelper
110 */
111 getWindowResolution() {
112 let width, height;
113
114 if (this.iOS) {
115 width = document.documentElement.clientWidth;
116 height = document.documentElement.clientHeight;
117 }
118 else {
119 width = window.innerWidth;
120 height = window.innerHeight;
121 }
122
123 return { width, height };
124 }
125}

Callers 2

resizeTickMethod · 0.95
onWindowResizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected