Updated libopenui

And fix the view main menu issue with this PR.
This commit is contained in:
Raphael Coeffic
2021-05-24 16:52:38 +02:00
committed by Raphael Coeffic
parent 09630ed4ff
commit efdf76a9f5
2 changed files with 4 additions and 8 deletions
@@ -36,14 +36,10 @@ void SelectFabCarousel::setMaxButtons(uint8_t max)
void SelectFabCarousel::addButton(uint8_t icon, const char* title,
std::function<uint8_t(void)> pressHandler)
{
coord_t y_pos = 0;//SELECT_BUTTON_BORDER;
coord_t x_pos = pageWidth * buttons;// + SELECT_BUTTON_BORDER / 2;
coord_t y_pos = 0;
coord_t x_pos = pageWidth * buttons;
buttons++;
/*auto button =*/ new SelectFabButton(this, x_pos, y_pos, icon, title, pressHandler);
new SelectFabButton(this, x_pos, y_pos, icon, title, pressHandler);
setInnerWidth(pageWidth * buttons);
// y_pos += button->width() + SELECT_BUTTON_BORDER;
// setHeight(y_pos);
// setInnerHeight(y_pos);
}