From be9b66ea80d5bb806ef649fa3f22ed37bc2b3ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 5 Jun 2017 11:40:48 +0200 Subject: [PATCH] [apps/sequence] In term sum controller, pan the window to make the cursor visible when view will appear Change-Id: I9e3e16cc5d3741c39ba76bfe1c8f74dd5a03ece2 --- apps/sequence/graph/term_sum_controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sequence/graph/term_sum_controller.cpp b/apps/sequence/graph/term_sum_controller.cpp index 5f7c83c8f..da1c8a042 100644 --- a/apps/sequence/graph/term_sum_controller.cpp +++ b/apps/sequence/graph/term_sum_controller.cpp @@ -37,6 +37,7 @@ View * TermSumController::view() { } void TermSumController::viewWillAppear() { + m_graphRange->panToMakePointVisible(m_cursor->x(), m_cursor->y(), k_cursorTopMarginRatio, k_cursorRightMarginRatio, k_cursorBottomMarginRatio, k_cursorLeftMarginRatio); m_contentView.graphView()->setVerticalCursor(true); m_contentView.graphView()->setCursorView(&m_cursorView); m_contentView.graphView()->setBannerView(nullptr);