mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] VariableBoxController: fix the maximal number of displayed cells
This commit is contained in:
committed by
LeaNumworks
parent
00d28108fb
commit
f68ec6a28d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user