From 31b2c7ad8e071a1cad114a02dc76ae737885759b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Paczos?= Date: Mon, 11 Jun 2018 14:41:15 +0200 Subject: [PATCH] [android] - ceil map dimensions (cherry picked from commit 0b883fd) --- .../main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java index d72e1a74a9b..0d506cd7468 100755 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java @@ -136,8 +136,8 @@ public void resizeView(int width, int height) { if (checkState("resizeView")) { return; } - width = (int) (width / pixelRatio); - height = (int) (height / pixelRatio); + width = (int) Math.ceil(width / pixelRatio); + height = (int) Math.ceil(height / pixelRatio); if (width < 0) { throw new IllegalArgumentException("width cannot be negative.");