mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-16 21:38:39 +00:00
fix width of submenu items on Vertical orientation (#2306)
* fix width of submenu items on vertical view * Gui: slightly better canvas width handling in submenu * Gui: remove unused include Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
8c93695d01
commit
88f8f68e29
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ static void submenu_view_draw_callback(Canvas* canvas, void* _model) {
|
|||
SubmenuModel* model = _model;
|
||||
|
||||
const uint8_t item_height = 16;
|
||||
const uint8_t item_width = 123;
|
||||
uint8_t item_width = canvas_width(canvas) - 5;
|
||||
|
||||
canvas_clear(canvas);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue