From 0d98d57031ee5a99c5b89558e9284b119d562ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 10 Oct 2016 17:37:25 +0200 Subject: [PATCH] [apps/graph/values] add margin to the table of values Change-Id: I606917b6dc0313a1b9041993aa1315ad7c15f089 --- apps/graph/values/values_controller.cpp | 2 +- apps/graph/values/values_controller.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/graph/values/values_controller.cpp b/apps/graph/values/values_controller.cpp index 9fc911c53..bfc53dfa5 100644 --- a/apps/graph/values/values_controller.cpp +++ b/apps/graph/values/values_controller.cpp @@ -3,7 +3,7 @@ ValuesController::ValuesController(Responder * parentResponder, Graph::FunctionStore * functionStore) : ViewController(parentResponder), - m_tableView(TableView(this, k_topMargin, 0, k_bottomMargin, 0)), + m_tableView(TableView(this, k_topMargin, k_rightMargin, k_bottomMargin, k_leftMargin)), m_activeCellX(0), m_activeCellY(-1), m_functionStore(functionStore) diff --git a/apps/graph/values/values_controller.h b/apps/graph/values/values_controller.h index 014d2988c..afd730ae0 100644 --- a/apps/graph/values/values_controller.h +++ b/apps/graph/values/values_controller.h @@ -32,6 +32,8 @@ public: static constexpr KDCoordinate k_topMargin = 10; static constexpr KDCoordinate k_bottomMargin = 5; + static constexpr KDCoordinate k_leftMargin = 1; + static constexpr KDCoordinate k_rightMargin = 10; static constexpr KDCoordinate k_cellHeight = 30; static constexpr KDCoordinate k_abscissaCellWidth = 150; static constexpr KDCoordinate k_ordinateCellWidth = 100;