diff --git a/app/src/main/java/dev/lucasnlm/antimine/level/view/LevelFragment.kt b/app/src/main/java/dev/lucasnlm/antimine/level/view/LevelFragment.kt index 3f11bfce..b88db53f 100644 --- a/app/src/main/java/dev/lucasnlm/antimine/level/view/LevelFragment.kt +++ b/app/src/main/java/dev/lucasnlm/antimine/level/view/LevelFragment.kt @@ -71,8 +71,8 @@ open class LevelFragment : CommonLevelFragment(R.layout.fragment_level) { recyclerGrid.post { levelSetup.value?.let { minefield -> val size = dimensionRepository.areaSizeWithPadding() - val dx = (minefield.width + 2) * size * 0.25f - val dy = (minefield.height + 2) * size * 0.25f + val dx = minefield.width * size * 0.25f + val dy = (minefield.height * size + dimensionRepository.actionBarSize()) * 0.25f - size * 3 recyclerGrid.smoothScrollBy(dx.toInt(), dy.toInt(), null, 200) } }