wxWidgets set an inaccessible border for the wxCollapsiblePane which makes layout of the dialog even more difficult. This code was copied from the wxWidgets 3.1.3 collpaneg.cpp
| 43 | // which makes layout of the dialog even more difficult. |
| 44 | // This code was copied from the wxWidgets 3.1.3 collpaneg.cpp |
| 45 | int GetCollapsiblePaneBorder(wxWindow* root) |
| 46 | { |
| 47 | #if defined(__WXMAC__) |
| 48 | (void)root; |
| 49 | return 6; |
| 50 | #elif defined(__WXMSW__) |
| 51 | return root->ConvertDialogToPixels(wxSize(2, 0)).x; |
| 52 | #else |
| 53 | (void)root; |
| 54 | return 5; |
| 55 | #endif |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | constexpr int MaxUserCommentLength = 2000; |
no test coverage detected