From f91a31d32678b1a8e181382eab3140d2594de8b9 Mon Sep 17 00:00:00 2001 From: henrypp Date: Fri, 29 Oct 2021 18:13:12 +0600 Subject: [PATCH] fix editor layout changing --- src/editor.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index ec7086e3..ec9cace1 100644 --- a/src/editor.c +++ b/src/editor.c @@ -722,9 +722,7 @@ INT_PTR CALLBACK PropertiesPagesProc (_In_ HWND hwnd, _In_ UINT msg, _In_ WPARAM hlistview = GetDlgItem (hwnd, listview_ids[i]); if (hlistview) - { _r_listview_setcolumn (hwnd, listview_ids[i], 0, NULL, -100); - } } break; @@ -1376,7 +1374,17 @@ INT_PTR CALLBACK PropertiesProc (_In_ HWND hwnd, _In_ UINT msg, _In_ WPARAM wpar case WM_SIZE: { + HWND hpage; + INT item_id; + _r_layout_resize (&layout_manager, wparam); + + item_id = _r_tab_getcurrentitem (hwnd, IDC_TAB); + hpage = (HWND)_r_tab_getitemlparam (hwnd, IDC_TAB, item_id); + + if (hpage) + _r_tab_adjustchild (hwnd, IDC_TAB, hpage); + break; }