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