Showing
1 changed file
with
1 additions
and
1 deletions
@@ -30,7 +30,7 @@ class ScreenUtil { | @@ -30,7 +30,7 @@ class ScreenUtil { | ||
30 | 30 | ||
31 | //相对于设计稿放大的倍数 | 31 | //相对于设计稿放大的倍数 |
32 | var scaleWidth = screenWidth / designWidth / pixelRatio; | 32 | var scaleWidth = screenWidth / designWidth / pixelRatio; |
33 | - var scaleHeight = screenHeight / designWidth / pixelRatio; | 33 | + var scaleHeight = screenHeight / designHeight / pixelRatio; |
34 | 34 | ||
35 | static ScreenUtil getInstance() { | 35 | static ScreenUtil getInstance() { |
36 | if (instance == null) { | 36 | if (instance == null) { |
-
Please register or login to post a comment