[android] - ceil map dimensions

This commit is contained in:
Łukasz Paczos
2018-06-11 14:41:15 +02:00
parent 95a6fcdd26
commit 0b883fdbfd

View File

@@ -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.");