Fixes issue where top player chip and pot were over under

bs
Laurent 5 years ago
parent 14210452bf
commit 3e65171c2f
  1. 2
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerAnimator.kt
  2. 2
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerView.kt

@ -252,7 +252,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) {
val maxPlayerCards = this.handHistory.maxPlayerCards
val grid = when (this.handHistory.numberOfPlayers) {
9, 10 -> Pair(4f, 5f)
else -> Pair(3.2f, 4.4f)
else -> Pair(3.7f, 4.7f)
}
val portrait = height > width

@ -19,7 +19,7 @@ class ReplayerView(context: Context, attrs: AttributeSet) : View(context, attrs)
init {
this.viewTreeObserver.addOnGlobalLayoutListener {
this.animator.configure(width.toFloat(), height.toFloat(), context)
this.animator.configure(width.toFloat(), width.toFloat(), context)
}
}

Loading…
Cancel
Save