From 4d0d631d8a5f91d337f8bd6a523cf94223a5cc3a Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Wed, 3 Apr 2019 06:56:28 -0500 Subject: [PATCH] Set minimum number of buttons --- ios/Application/Frontend/MainScreenController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Application/Frontend/MainScreenController.swift b/ios/Application/Frontend/MainScreenController.swift index 43ee64223..45157a8d3 100644 --- a/ios/Application/Frontend/MainScreenController.swift +++ b/ios/Application/Frontend/MainScreenController.swift @@ -250,6 +250,7 @@ class MainScreenController: UITableViewController, MainScreenDataSourceListener func computeNumberOfButtons(_ width: Double) { nButtons = Int((width - 220) / theme.checkmarkButtonSize) + nButtons = max(nButtons, 3) nButtons = min(nButtons, Int(dataSource.maxNumberOfButtons)) }