Sizer based dialogs (like wxSingleChoiceDialog) are now forced to initially appear in the visible area of the display, relocating the dialog before display so that it fits within the display (if possible). If the dialog will not fit in the display area, it is shifted so that the top edge with the title bar is visible on the display
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -378,9 +378,12 @@ void wxSizer::SetSizeHints( wxWindow *window )
|
||||
|
||||
wxSize wxSizer::GetMaxWindowSize( wxWindow *WXUNUSED(window) )
|
||||
{
|
||||
wxSize sizeMax = wxGetDisplaySize();
|
||||
// make the max size a bit smaller than the screen, a window which takes
|
||||
// the entire screen doesn't look very nice neither
|
||||
wxRect rect = wxGetClientDisplayRect();
|
||||
wxSize sizeMax (rect.width,rect.height);
|
||||
|
||||
// Make the max size a bit smaller than the visible portion of
|
||||
// the screen. A window which takes the entire screen doesn't
|
||||
// look very nice either
|
||||
sizeMax.x *= 9;
|
||||
sizeMax.x /= 10;
|
||||
|
||||
|
Reference in New Issue
Block a user