From 121c2585c8b8b606d400d1961264d1238fbe404f Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 3 May 2022 18:19:26 -0400 Subject: [PATCH] improve resizing behavior (fixes #67) --- src/windows/mainwindow.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/windows/mainwindow.cpp b/src/windows/mainwindow.cpp index 4436785..edd485d 100644 --- a/src/windows/mainwindow.cpp +++ b/src/windows/mainwindow.cpp @@ -47,8 +47,10 @@ MainWindow::MainWindow() m_chan_content_paned.pack1(m_channel_list); m_chan_content_paned.pack2(m_content_members_paned); - m_chan_content_paned.child_property_shrink(m_channel_list) = false; - m_chan_content_paned.child_property_resize(m_channel_list) = false; + m_chan_content_paned.child_property_shrink(m_content_members_paned) = true; + m_chan_content_paned.child_property_resize(m_content_members_paned) = true; + m_chan_content_paned.child_property_shrink(m_channel_list) = true; + m_chan_content_paned.child_property_resize(m_channel_list) = true; m_chan_content_paned.set_position(200); m_chan_content_paned.show(); m_content_box.add(m_chan_content_paned); @@ -56,8 +58,10 @@ MainWindow::MainWindow() m_content_members_paned.pack1(m_content_stack); m_content_members_paned.pack2(*member_list); - m_content_members_paned.child_property_shrink(*member_list) = false; - m_content_members_paned.child_property_resize(*member_list) = false; + m_content_members_paned.child_property_shrink(m_content_stack) = true; + m_content_members_paned.child_property_resize(m_content_stack) = true; + m_content_members_paned.child_property_shrink(*member_list) = true; + m_content_members_paned.child_property_resize(*member_list) = true; int w, h; get_default_size(w, h); // :s m_content_members_paned.set_position(w - m_chan_content_paned.get_position() - 150);