mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/shared] EditableCellTableViewController: adjust column width to be
able to display float like "-1.234567E-123"
This commit is contained in:
committed by
LeaNumworks
parent
501f7ed8af
commit
d6ad694b76
@@ -46,6 +46,8 @@ public:
|
||||
|
||||
protected:
|
||||
static constexpr KDCoordinate k_cellWidth = 116;
|
||||
static_assert((Poincare::PrintFloat::glyphLengthForFloatWithPrecision(Poincare::Preferences::LargeNumberOfSignificantDigits)) * 7 + 2*Metric::CellMargin < k_cellWidth, "Store controller cells are too small to hold values like '-1.234567E-123'"); // KDFont::SmallFont->glyphSize().width() = 7
|
||||
|
||||
constexpr static int k_maxNumberOfEditableCells = (Ion::Display::Width/k_cellWidth+2) * ((Ion::Display::Height - Metric::TitleBarHeight - Metric::TabHeight)/k_cellHeight+2);
|
||||
constexpr static int k_numberOfTitleCells = 4;
|
||||
static constexpr int k_titleCellType = 0;
|
||||
|
||||
Reference in New Issue
Block a user