diff options
author | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2018-06-11 14:41:15 +0200 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2018-06-11 15:45:02 +0200 |
commit | 0b883fdbfd671260bd859f1c31ac2dfb535fd28b (patch) | |
tree | a7f6d7b38862112c07644c2fdeeae6b4314e9f84 | |
parent | 95a6fcdd26c93ebea2726c43f8afdf04b4245830 (diff) | |
download | qtlocation-mapboxgl-0b883fdbfd671260bd859f1c31ac2dfb535fd28b.tar.gz |
[android] - ceil map dimensions
-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."); |