Update position

This commit is contained in:
vshcherb 2014-04-27 21:44:22 +02:00
parent 6de7f8244a
commit f0be199d5b
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
*.render.xml
*.map_style_presets.xml
*.map_styles_presets.xml
routing*.xml
rendering_types.xml
countries.reginfo

View file

@ -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) {