[apps] VariableBoxController: fix the maximal number of displayed cells

This commit is contained in:
Émilie Feral
2020-01-06 16:14:46 +01:00
committed by LeaNumworks
parent 00d28108fb
commit f68ec6a28d

View File

@@ -33,7 +33,7 @@ public:
};
void lockDeleteEvent(Page page) { m_lockPageDelete = page; }
private:
constexpr static int k_maxNumberOfDisplayedRows = (Ion::Display::Height - Metric::TitleBarHeight - Metric::PopUpTopMargin - Metric::StackTitleHeight) / Metric::ToolboxRowHeight + 1; // (240 - 18 - 50 - 20) / 40 = 3.8 and +1 to get 4
constexpr static int k_maxNumberOfDisplayedRows = (Ion::Display::Height - Metric::TitleBarHeight - Metric::PopUpTopMargin - Metric::StackTitleHeight) / Metric::ToolboxRowHeight + 2; // (240 - 18 - 50 - 20) / 40 = 3.8; the 0.8 cell can be above and below so we add +2 to get 5
constexpr static int k_numberOfMenuRows = 2;
constexpr static KDCoordinate k_leafMargin = 20;
ExpressionTableCellWithExpression * leafCellAtIndex(int index) override;