From: dpage Date: Tue, 25 Nov 2008 13:22:20 +0000 (+0000) Subject: Fix initial layout of the index dialogue so that lstColumns is appropriately sized... X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6304561cca95fbef5c5911f929060fe6fc8a65d0;p=users%2Fquan74%2Fpgadmin-import.git Fix initial layout of the index dialogue so that lstColumns is appropriately sized by default. git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7506 a7884b65-44f6-0310-8a51-81a127f17b15 --- diff --git a/pgadmin/dlg/dlgIndex.cpp b/pgadmin/dlg/dlgIndex.cpp index c49042cd2..d3e55fdfa 100644 --- a/pgadmin/dlg/dlgIndex.cpp +++ b/pgadmin/dlg/dlgIndex.cpp @@ -330,10 +330,15 @@ int dlgIndex::Go(bool modal) int returnCode = dlgIndexBase::Go(modal); - #ifdef __WXMAC__ +#ifdef __WXMAC__ wxSizeEvent event(wxSize(GetSize().GetWidth() - 25, GetSize().GetHeight() + 200)); OnChangeSize(event); - #endif + + // This fixes a UI glitch on MacOS X + // Because of the new layout code, the Columns pane doesn't size itself properly + SetSize(GetSize().GetWidth()+1, GetSize().GetHeight()); + SetSize(GetSize().GetWidth()-1, GetSize().GetHeight()); +#endif return returnCode; } diff --git a/pgadmin/dlg/dlgProperty.cpp b/pgadmin/dlg/dlgProperty.cpp index 9a9faa6ad..00d75dcac 100644 --- a/pgadmin/dlg/dlgProperty.cpp +++ b/pgadmin/dlg/dlgProperty.cpp @@ -1426,6 +1426,7 @@ int dlgCollistProperty::Go(bool modal) } } } + return dlgProperty::Go(modal); }