From c6c08c94846263a8ec7a599075d089af6b4cfe93 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sat, 15 Nov 2014 17:39:34 +0000 Subject: [PATCH] Make more realistic estimation of the best size of wxPropertyGridManager. Current best size (especially width) of wxPropertyGrid Manager is too small. wxPG manager should be wide enough to hold wxPG with two columns and scroll bar. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index bc94bb6274..972d062528 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -639,7 +639,8 @@ void wxPropertyGridManager::SetId( wxWindowID winid ) wxSize wxPropertyGridManager::DoGetBestSize() const { - return wxSize(60,150); + // Width: margin=15 + columns=2*40 + scroll bar + return wxSize(15+2*40+wxSystemSettings::GetMetric(wxSYS_VSCROLL_X), 150); } // -----------------------------------------------------------------------