diff options
-rwxr-xr-x | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java | 4 |
1 files 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 d72e1a74a9..0d506cd746 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 @@ final class NativeMapView { 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."); |