Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chenl
8 years ago
Commit
0c094ddd8734ebc73032d36b4b34bdc8a70fd555
1 parent
22292f40
修改Math.ceil为 floor。review by 于良
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
js/home/components/floor/SixLinesFloor.js
js/home/components/floor/SixLinesFloor.js
View file @
0c094dd
...
...
@@ -72,8 +72,8 @@ export default class SixLinesFloor extends Component{
let
{
width
}
=
Dimensions
.
get
(
'window'
);
const
DEVICE_WIDTH_RATIO
=
width
/
320
;
let
imageWidth
=
Math
.
ceil
(
width
/
2
);
let
imageHeight
=
Math
.
ceil
(
imageWidth
*
180
/
375
);
let
imageWidth
=
Math
.
floor
(
width
/
2
);
let
imageHeight
=
Math
.
floor
(
imageWidth
*
180
/
375
);
let
styles
=
StyleSheet
.
create
({
...
...
Please
register
or
login
to post a comment