From 6acf765784cf53493b04fe9501f8b09e444a8503 Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Mon, 20 Sep 2021 12:53:18 +0200 Subject: [PATCH] [Windows][Manager] Fix tab width issue. wxNB_FIXEDWIDTH flag has effect on Windows only. And when used, it forces the control to have fixed tab width that doesn't use tab title to calculate needed tab width. Removing wxNB_FIXEDWIDTH flag as not useful in this case. This fixes #2364. Signed-off-by: Vitalii Koshura --- clientgui/AdvancedFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 5fd385675d..8d8ae4e8f3 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -777,8 +777,7 @@ bool CAdvancedFrame::CreateNotebook() { pPanel->SetAutoLayout(TRUE); // initialize notebook - m_pNotebook = new wxNotebook(pPanel, ID_FRAMENOTEBOOK, wxDefaultPosition, wxDefaultSize, - wxNB_FIXEDWIDTH|wxCLIP_CHILDREN); + m_pNotebook = new wxNotebook(pPanel, ID_FRAMENOTEBOOK, wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN); // layout frame panel wxBoxSizer *pPanelSizer = new wxBoxSizer(wxVERTICAL);