ENH:When software is full screen in mac, the sub frame uses the wxSTAYBON_TOP style

jira: STUDIO-11046
Change-Id: Ie1b85e4ac5a5698ec42870349f688924cdf30e21
(cherry picked from commit b28b9c49b208b4269563f59b42ac671fca8035be)
This commit is contained in:
zhou.xu
2025-03-22 15:28:33 +08:00
committed by Noisyfox
parent dd6fff08f7
commit 87116c0f00
6 changed files with 22 additions and 2 deletions

View File

@@ -26,6 +26,10 @@ ImageDPIFrame::ImageDPIFrame()
SetMinSize(wxSize(FromDIP(width), -1));
SetMaxSize(wxSize(FromDIP(width), -1));
SetBackgroundColour(wxColour(242, 242, 242, 255));
#ifdef __APPLE__
SetWindowStyleFlag(GetWindowStyleFlag() | wxSTAY_ON_TOP);
#endif
m_sizer_main = new wxBoxSizer(wxVERTICAL);
auto image_sizer = new wxBoxSizer(wxVERTICAL);
auto imgsize = FromDIP(width);