Skip to content

Commit

Permalink
fix: badge seems to cut off on devices with 19.5:9 ratio (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityastic authored and iamareebjamal committed Jun 20, 2019
1 parent a41f841 commit b4fe215
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PreviewBadge : View {
super.onMeasure(widthMeasureSpec, heightMeasureSpec)

val ratioHeight = 1
val ratioWidth = 3.45
val ratioWidth = 3

val originalWidth = MeasureSpec.getSize(widthMeasureSpec)
val calculatedHeight = originalWidth * ratioHeight / ratioWidth
Expand Down

0 comments on commit b4fe215

Please # to comment.