Fix initial layout of the index dialogue so that lstColumns is appropriately sized...
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 25 Nov 2008 13:22:20 +0000 (13:22 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 25 Nov 2008 13:22:20 +0000 (13:22 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7506 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/dlg/dlgIndex.cpp
pgadmin/dlg/dlgProperty.cpp

index c49042cd26a47a96d9ffdb814f2d4a74dfb51735..d3e55fdfa8ebb49ce3a846846e77c804bea33f20 100644 (file)
@@ -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;
 }
index 9a9faa6adb4b7c5a2fe0610ec96a2ef8f0fab6a6..00d75dcacc507e49820f1f8d8b8feb1bb53b0870 100644 (file)
@@ -1426,6 +1426,7 @@ int dlgCollistProperty::Go(bool modal)
             }
         }
     }
+
     return dlgProperty::Go(modal);
 }