From f0be199d5b87d0c1ed9ec19a087a65b5aa3811e9 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 27 Apr 2014 21:44:22 +0200 Subject: [PATCH] Update position --- .gitignore | 2 +- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f309e74dfd..d75872ad4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.render.xml -*.map_style_presets.xml +*.map_styles_presets.xml routing*.xml rendering_types.xml countries.reginfo diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index c37216a69e..ef432a2197 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -454,7 +454,7 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall Canvas canvas = holder.lockCanvas(); if (canvas != null) { try { - final float ratioy = mapPosition == OsmandSettings.BOTTOM_CONSTANT ? 0.8f : 0.5f; + final float ratioy = mapPosition == OsmandSettings.BOTTOM_CONSTANT ? 0.85f : 0.5f; final int cy = (int) (ratioy * getHeight()); if(currentViewport.getPixWidth() != getWidth() || currentViewport.getPixHeight() != getHeight() || currentViewport.getCenterPixelY() != cy) {