[geary/gnumdk/stable: 7/21] client: conversation-viewer: Give more room to composer in embedded mode




commit b573b7d4fe67ebd1426a6454ee6599a110c2922c
Author: Cédric Bellegarde <cedric bellegarde adishatz org>
Date:   Sun Jul 3 14:36:56 2022 +0200

    client: conversation-viewer: Give more room to composer in embedded mode

 src/client/conversation-viewer/conversation-viewer.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/client/conversation-viewer/conversation-viewer.vala 
b/src/client/conversation-viewer/conversation-viewer.vala
index 4b645fced..e3a9825e8 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -195,6 +195,11 @@ public class ConversationViewer : Gtk.Stack, Geary.BaseInterface {
         }
 
         if (kinetic) this.conversation_scroller.kinetic_scrolling = true;
+
+        // Set a minimal composer height
+        composer.set_size_request(
+            -1, this.conversation_scroller.get_allocated_height() / 3 * 2
+        );
     }
 
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]