Skip to content

Commit 4262183

Browse files
committed
fixed the get width and getheight section
1 parent 4b5ee8b commit 4262183

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/environment.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,9 @@ function getWindowWidth() {
807807
}
808808
}
809809

810-
if (typeof window.visualViewport.width === 'number' && window.visualViewport.width > 0) {
811-
return window.visualViewport.width;
812-
}
810+
// if (typeof window.visualViewport.width === 'number' && window.visualViewport.width > 0) {
811+
// return window.visualViewport.width;
812+
// }
813813
}
814814
} catch (e) {
815815
// experimental access may throw; ignore and continue with fallbacks
@@ -834,9 +834,9 @@ function getWindowHeight() {
834834
}
835835
}
836836

837-
if (typeof window.visualViewport.height === 'number' && window.visualViewport.height > 0) {
838-
return window.visualViewport.height;
839-
}
837+
// if (typeof window.visualViewport.height === 'number' && window.visualViewport.height > 0) {
838+
// return window.visualViewport.height;
839+
// }
840840
}
841841
} catch (e) {
842842
// experimental access may throw; ignore and continue with fallbacks

0 commit comments

Comments
 (0)