diff options
author | vng <viktor.govako@gmail.com> | 2012-03-06 00:19:28 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:36:28 +0300 |
commit | 99179605b3633890a68376e886c45ecd393c2c3c (patch) | |
tree | f53fefc9d836b09a240d6bcca4b3133b5585bc37 | |
parent | e1c904bb79e316ffb306d90aa53faef9245ca7fc (diff) |
[search] Tune dummy viewport constant. Now we have good zoom level on iPad and iPhone.
-rw-r--r-- | indexer/feature_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/feature_utils.cpp b/indexer/feature_utils.cpp index e6ff1f6415..5ecc825f14 100644 --- a/indexer/feature_utils.cpp +++ b/indexer/feature_utils.cpp @@ -86,7 +86,9 @@ public: scale = min(scale, GetScaleForType(types[i])); CorrectScaleForVisibility(types, scale); - return scales::GetRectForLevel(scale - 0.5, limitRect.Center(), 1.0); + + /// @todo 0.15 - is dummy constant to fix bug in iPad viewport. + return scales::GetRectForLevel(scale - 0.15, limitRect.Center(), 1.0); } uint8_t GetSearchRank(TypesHolder const & types, m2::PointD const & pt, uint32_t population) const |