修改Math.ceil为 floor。review by 于良
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -72,8 +72,8 @@ export default class SixLinesFloor extends Component{ | @@ -72,8 +72,8 @@ export default class SixLinesFloor extends Component{ | ||
72 | let {width} = Dimensions.get('window'); | 72 | let {width} = Dimensions.get('window'); |
73 | const DEVICE_WIDTH_RATIO = width / 320; | 73 | const DEVICE_WIDTH_RATIO = width / 320; |
74 | 74 | ||
75 | -let imageWidth = Math.ceil(width / 2); | ||
76 | -let imageHeight = Math.ceil(imageWidth * 180 / 375); | 75 | +let imageWidth = Math.floor(width / 2); |
76 | +let imageHeight = Math.floor(imageWidth * 180 / 375); | ||
77 | 77 | ||
78 | 78 | ||
79 | let styles = StyleSheet.create({ | 79 | let styles = StyleSheet.create({ |
-
Please register or login to post a comment