Skip to content

Commit

Permalink
Merge pull request #22 from Hiseen/henry-svg-fix
Browse files Browse the repository at this point in the history
[Issue #18] Fix svg display issue on IOS platform
  • Loading branch information
hiseen authored Mar 21, 2019
2 parents 97f50a4 + e21f156 commit 394f0cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion new-gui/src/components/UserInformationPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ class UserInformationComponent extends Component {
x={0}
y={(this.state.userInfo.caloriesNeeded-this.state.userInfo.caloriesTakenCurrently)/this.state.userInfo.caloriesNeeded*486}
width={300}
height={this.state.userInfo.caloriesTakenCurrently/this.state.userInfo.caloriesNeeded*486}
height={this.state.userInfo.caloriesTakenCurrently > 0 ?
this.state.userInfo.caloriesTakenCurrently/this.state.userInfo.caloriesNeeded*486 :
1 /this.state.userInfo.caloriesNeeded*486}
strokeWidth={0}
fill="#3CB371"
/>
Expand Down

0 comments on commit 394f0cb

Please sign in to comment.