recovery: compute displayable item count while drawing
Change-Id: Iece9359a5d7fd768748716bc9281578650fcc2d0
diff --git a/recovery_ui/wear_ui.cpp b/recovery_ui/wear_ui.cpp
index 7aaf59b..ecedc1c 100644
--- a/recovery_ui/wear_ui.cpp
+++ b/recovery_ui/wear_ui.cpp
@@ -99,9 +99,8 @@
const std::vector<std::string>& text_items,
size_t initial_selection) const {
if (text_rows_ > 0 && text_cols_ > 0) {
- return std::make_unique<TextMenu>(false, text_rows_ - menu_unusable_rows_ - 1,
- text_cols_ - 1, text_headers, text_items, initial_selection,
- char_height_, *this);
+ return std::make_unique<TextMenu>(false, text_cols_ - 1, text_headers, text_items,
+ initial_selection, char_height_, *this);
}
return nullptr;