]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/preferences.mm
Add a test for eol-native file existence in the release script.
[wxWidgets.git] / src / osx / cocoa / preferences.mm
index 81160c7b3e4d3be0e8456ac4e743342b96b2a8c4..3eb6d0662828d584c36af17143e60c96c2ff02fa 100644 (file)
@@ -23,6 +23,8 @@
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_PREFERENCES_EDITOR
+
 #include "wx/private/preferences.h"
 
 #ifdef wxHAS_PREF_EDITOR_NATIVE
 #include "wx/private/preferences.h"
 
 #ifdef wxHAS_PREF_EDITOR_NATIVE
@@ -129,6 +131,7 @@ private:
         {
             info->win = info->page->CreateWindow(this);
             info->win->Hide();
         {
             info->win = info->page->CreateWindow(this);
             info->win->Hide();
+            info->win->Fit();
             // fill the page with data using wxEVT_INIT_DIALOG/TransferDataToWindow:
             info->win->InitDialog();
         }
             // fill the page with data using wxEVT_INIT_DIALOG/TransferDataToWindow:
             info->win->InitDialog();
         }
@@ -255,3 +258,5 @@ wxPreferencesEditorImpl* wxPreferencesEditorImpl::Create(const wxString& title)
 }
 
 #endif // wxHAS_PREF_EDITOR_NATIVE
 }
 
 #endif // wxHAS_PREF_EDITOR_NATIVE
+
+#endif // wxUSE_PREFERENCES_EDITOR