Handle DPI change in wxSplitterWindow

Adjust the minimum pane size to the new DPI.
Keep the sash in the same relative position.
This commit is contained in:
Maarten Bent
2022-03-08 22:16:50 +01:00
parent e43895e531
commit 1ecebd5c7c
2 changed files with 25 additions and 0 deletions

View File

@@ -201,6 +201,8 @@ public:
// Adjusts the panes
void OnSize(wxSizeEvent& event);
void OnDPIChanged(wxDPIChangedEvent& event);
// In live mode, resize child windows in idle time
void OnInternalIdle() wxOVERRIDE;
@@ -295,6 +297,7 @@ protected:
bool m_needUpdating:1;
bool m_permitUnsplitAlways:1;
bool m_isHot:1;
bool m_sizeAfterDPIChange:1;
private:
wxDECLARE_DYNAMIC_CLASS(wxSplitterWindow);