summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-14 15:07:11 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-14 15:07:11 +0200
commit51aaadbf5918abf6b0c05976f0cd5e1211a708ab (patch)
tree421184d25d72151958cd2cb9cad3534f7760058d
parentd3595f9c51adf498e9d3b3cec4e9a3849bf56311 (diff)
SidebarWidget: Phone needs no document resize
-rw-r--r--src/ui/sidebarwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 07f1908c..dcce724a 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -1231,7 +1231,9 @@ static iBool handleSidebarCommand_SidebarWidget_(iSidebarWidget *d, const char *
1231 arrange_Widget(w->parent); 1231 arrange_Widget(w->parent);
1232 /* BUG: Rearranging because the arrange above didn't fully resolve the height. */ 1232 /* BUG: Rearranging because the arrange above didn't fully resolve the height. */
1233 arrange_Widget(w); 1233 arrange_Widget(w);
1234 updateSize_DocumentWidget(document_App()); 1234 if (!isPortraitPhone_App()) {
1235 updateSize_DocumentWidget(document_App());
1236 }
1235 if (isVisible_Widget(w)) { 1237 if (isVisible_Widget(w)) {
1236 updateItems_SidebarWidget_(d); 1238 updateItems_SidebarWidget_(d);
1237 scrollOffset_ListWidget(d->list, 0); 1239 scrollOffset_ListWidget(d->list, 0);