From d83c4f5b3ea2198c883349dbc89e68c8d78aef02 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 18 Aug 2020 19:39:17 +0300 Subject: DocumentWidget: Render marks transparently --- src/ui/sidebarwidget.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/sidebarwidget.c') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 71b641d4..96c9ebd8 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -175,6 +175,7 @@ void setMode_SidebarWidget(iSidebarWidget *d, enum iSidebarMode mode) { } const float heights[max_SidebarMode] = { 1.333f, 3, 3, 1.2f }; d->itemHeight = heights[mode] * lineHeight_Text(uiContent_FontId); + invalidate_SidebarWidget_(d); } enum iSidebarMode mode_SidebarWidget(const iSidebarWidget *d) { @@ -401,6 +402,7 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev) if (argLabel_Command(cmd, "show") && !isVisible_Widget(w)) { postCommand_App("sidebar.toggle"); } + scroll_SidebarWidget_(d, 0); return iTrue; } else if (equal_Command(cmd, "sidebar.toggle")) { -- cgit v1.2.3