]> uap-core.de Git - note.git/commitdiff
enable scrollbar for attachments list
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Thu, 15 May 2025 10:47:39 +0000 (12:47 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Thu, 15 May 2025 10:47:39 +0000 (12:47 +0200)
application/window.c

index 4aeb9705d7bee6b9cfe907180a829636c5d0a533..261ca667870bf66b95ec31757e53202d97279962 100644 (file)
@@ -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);