summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/list.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 9843339..662496d 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -72,14 +72,8 @@ void list_init_viewports(struct gui_synclist *list)
FOR_NB_SCREENS(i)
{
vp = &parent[i];
- if (!list)
+ if (!list || list->parent[i] == vp)
viewport_set_defaults(vp, i);
- else if (list->parent[i] == vp)
- {
- viewport_set_defaults(vp, i);
- list->parent[i]->y = gui_statusbar_height();
- list->parent[i]->height = screens[i].lcdheight - list->parent[i]->y;
- }
}
#ifdef HAVE_BUTTONBAR
if (list && (list->parent[0] == &parent[0]) && global_settings.buttonbar)