From ca146e0534e0fa1e16c74ee98176a4679f264179 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Thu, 15 May 2025 12:47:39 +0200 Subject: [PATCH] enable scrollbar for attachments list --- application/window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/window.c b/application/window.c index 4aeb970..261ca66 100644 --- a/application/window.c +++ b/application/window.c @@ -91,11 +91,11 @@ void window_create() { ui_button(obj, .icon = "insert-link"); } ui_hbox_w(obj, wdata->attachments, .margin = 10, .fill = UI_OFF) { - //UIWIDGET sw; - //ui_scrolledwindow_w(obj, sw, .name = "note_attachments_sw") { + UIWIDGET sw; + ui_scrolledwindow_w(obj, sw, .name = "note_attachments_sw") { ui_itemlist(obj, .varname = "note_attachments", .container = UI_CONTAINER_HBOX, .create_ui = attachment_item, .userdata = wdata); - //} - //ui_widget_set_size(sw, -1, 120); + } + ui_widget_set_size(sw, -1, 120); } ui_widget_set_size(wdata->attachments, -1, 120); -- 2.43.5