diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 13:37:23 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 13:37:23 +0200 |
commit | 480fe2f859b191584113de6e483121d3893eaf3e (patch) | |
tree | 84c74f42b348ec8c6d6a81d7cca57e3c939cb6c8 /src/ui/scrollwidget.c | |
parent | fa174461abdc5c33de16428109c7d46b4f150093 (diff) |
Mobile improvements
Seeing if a few forced redraws will take care of the squished view issue.
On the phone, showing and hiding the sidebar is not supposed to resize any documents.
Diffstat (limited to 'src/ui/scrollwidget.c')
-rw-r--r-- | src/ui/scrollwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c index a08b58d7..050681f4 100644 --- a/src/ui/scrollwidget.c +++ b/src/ui/scrollwidget.c | |||
@@ -116,7 +116,7 @@ static void unfade_ScrollWidget_(iScrollWidget *d, float opacity) { | |||
116 | } | 116 | } |
117 | 117 | ||
118 | static void checkVisible_ScrollWidget_(iScrollWidget *d) { | 118 | static void checkVisible_ScrollWidget_(iScrollWidget *d) { |
119 | const iBool wasHidden = isVisible_Widget(d); | 119 | const iBool wasHidden = !isVisible_Widget(d); |
120 | const iBool isHidden = d->thumbSize != 0 ? height_Rect(thumbRect_ScrollWidget_(d)) == 0 : iTrue; | 120 | const iBool isHidden = d->thumbSize != 0 ? height_Rect(thumbRect_ScrollWidget_(d)) == 0 : iTrue; |
121 | setFlags_Widget(as_Widget(d), hidden_WidgetFlag, isHidden); | 121 | setFlags_Widget(as_Widget(d), hidden_WidgetFlag, isHidden); |
122 | if (wasHidden && !isHidden) { | 122 | if (wasHidden && !isHidden) { |