X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be698f50301674b969cacecc683ffac5ba6e2e16..645b5bd6c0bc43c1029bcaeed32f34db063a3739:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index f96e8ffadc..8ab07a92ab 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -168,6 +168,8 @@ void wxStyledTextCtrl::Create(wxWindow *parent, // Put Scintilla into unicode (UTF-8) mode SetCodePage(wxSTC_CP_UTF8); #endif + + SetBestFittingSize(size); } @@ -2757,6 +2759,14 @@ void wxStyledTextCtrl::OnIdle(wxIdleEvent& evt) { } +wxSize wxStyledTextCtrl::DoGetBestSize() const +{ + // What would be the best size for a wxSTC? + // Just give a reasonable minimum until something else can be figured out. + return wxSize(200,100); +} + + //---------------------------------------------------------------------- // Turn notifications from Scintilla into events