From b56cd8b012fec5f22f3fc9d8137aebed002b62df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 21 Jan 2020 14:51:53 +0100 Subject: [PATCH] [escher] Metric: add EllipsisCellWidth. This will be soon used by Calculation::HistoryCell --- apps/code/menu_controller.h | 2 +- escher/include/escher/metric.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/code/menu_controller.h b/apps/code/menu_controller.h index a966b09e6..7a8db9167 100644 --- a/apps/code/menu_controller.h +++ b/apps/code/menu_controller.h @@ -67,7 +67,7 @@ public: private: static constexpr int k_maxNumberOfDisplayableScriptCells = 5; // = 240/50 - static constexpr int k_parametersColumnWidth = 37; + static constexpr int k_parametersColumnWidth = Metric::EllipsisCellWidth; static constexpr int AddScriptCellType = 0; static constexpr int ScriptCellType = 1; static constexpr int ScriptParameterCellType = 2; diff --git a/escher/include/escher/metric.h b/escher/include/escher/metric.h index b82640a2c..70ef4f732 100644 --- a/escher/include/escher/metric.h +++ b/escher/include/escher/metric.h @@ -35,6 +35,7 @@ public: constexpr static KDCoordinate CellSeparatorThickness = 1; constexpr static KDCoordinate TableSeparatorThickness = 5; constexpr static KDCoordinate ExpressionViewHorizontalMargin = 5; + constexpr static KDCoordinate EllipsisCellWidth = 37; }; #endif