Remeasure magic values for wxTextCtrl's border width on wxOSX/Cocoa

Measured on macOS Catalina. Also implements GetSizeFromTextSize
This commit is contained in:
wangqr
2020-05-19 00:18:51 -04:00
parent edc553870f
commit dad9a02a40
2 changed files with 14 additions and 5 deletions

View File

@@ -139,6 +139,7 @@ protected:
void Init();
virtual wxSize DoGetBestSize() const wxOVERRIDE;
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen) const wxOVERRIDE;
// flag is set to true when the user edits the controls contents
bool m_dirty;