diff options
author | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-11-27 10:33:00 -0500 |
commit | 2e61b9b6258f29c03cb3b0da48282f3a87590702 (patch) | |
tree | 2be66dfaf965d246ea2df6248c7890208887e6bb /wx+/popup_dlg.cpp | |
parent | add upstream 13.1 (diff) | |
download | FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.gz FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.tar.bz2 FreeFileSync-2e61b9b6258f29c03cb3b0da48282f3a87590702.zip |
add upstream 13.213.2
Diffstat (limited to 'wx+/popup_dlg.cpp')
-rw-r--r-- | wx+/popup_dlg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wx+/popup_dlg.cpp b/wx+/popup_dlg.cpp index 5254ff29..c48bf592 100644 --- a/wx+/popup_dlg.cpp +++ b/wx+/popup_dlg.cpp @@ -27,7 +27,7 @@ namespace { void setBestInitialSize(wxRichTextCtrl& ctrl, const wxString& text, wxSize maxSize) { - const int scrollbarWidth = fastFromDIP(25); /*not only scrollbar, but also left/right padding (on macOS)! + const int scrollbarWidth = dipToWxsize(25); /*not only scrollbar, but also left/right padding (on macOS)! better use slightly larger than exact value (Windows: 17, Linux(CentOS): 14, macOS: 25) => worst case: minor increase in rowCount (no big deal) + slightly larger bestSize.x (good!) */ @@ -164,8 +164,8 @@ public: titleTmp = wxTheApp->GetAppDisplayName() + (!titleTmp.empty() ? SPACED_DASH + titleTmp : wxString()); SetTitle(titleTmp); - int maxWidth = fastFromDIP(500); - int maxHeight = fastFromDIP(400); //try to determine better value based on actual display resolution: + int maxWidth = dipToWxsize(500); + int maxHeight = dipToWxsize(400); //try to determine better value based on actual display resolution: if (parent) if (const int disPos = wxDisplay::GetFromWindow(parent); //window must be visible disPos != wxNOT_FOUND) |