Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-04-07 13:42:16 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:14:09 +0300
commit932855c119ecf34a34708f777bda6ac2fb51cc95 (patch)
treed6a57dd7ed12e42174ade1bb4192d89b09386fe7 /map/ruler.cpp
parent07e8fcb62ff94eb4aac5994bc5b785882fc60455 (diff)
show ruler on double tap and scale by buttons
Diffstat (limited to 'map/ruler.cpp')
-rw-r--r--map/ruler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/map/ruler.cpp b/map/ruler.cpp
index cece61d3c9..54d6ddba8c 100644
--- a/map/ruler.cpp
+++ b/map/ruler.cpp
@@ -551,16 +551,24 @@ void Ruler::AnimateShow()
{
setIsVisible(true);
frame->ShowAnimate(false);
+ m_framework->Invalidate();
}
else if (isVisible() && (frame->IsAnimActive() && frame->IsHidingAnim()))
+ {
frame->ShowAnimate(false);
+ m_framework->Invalidate();
+ }
}
void Ruler::AnimateHide()
{
+ LOG(LINFO, ("Animate hide"));
RulerFrame * frame = GetMainFrame();
if (isVisible() && (!frame->IsAnimActive() || !frame->IsHidingAnim()))
+ {
frame->HideAnimate(true);
+ m_framework->Invalidate();
+ }
}
void Ruler::layout()