X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dddd1f21c165da8c9e8cd62a7007e99a4fcab7b3..c2794afdbb17b46a677e28e73ac5e50a82e13399:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 05f22c324f..891c017583 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -834,14 +834,14 @@ void wxWindowBase::DoSetVirtualSize( int x, int y ) wxSize wxWindowBase::DoGetVirtualSize() const { - if ( m_virtualSize.IsFullySpecified() ) - return m_virtualSize; - + // we should use the entire client area so if it is greater than our + // virtual size, expand it to fit (otherwise if the window is big enough we + // wouldn't be using parts of it) wxSize size = GetClientSize(); - if ( m_virtualSize.x != wxDefaultCoord ) + if ( m_virtualSize.x > size.x ) size.x = m_virtualSize.x; - if ( m_virtualSize.y != wxDefaultCoord ) + if ( m_virtualSize.y >= size.y ) size.y = m_virtualSize.y; return size; @@ -2363,7 +2363,7 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event ) wxMessageBox(wxString::Format( _T( - " wxWidgets Library (%s port)\nVersion %d.%d.%d%s%s, compiled at %s %s%s\n Copyright (c) 1995-2005 wxWidgets team" + " wxWidgets Library (%s port)\nVersion %d.%d.%d%s%s, compiled at %s %s%s\n Copyright (c) 1995-2006 wxWidgets team" ), port.c_str(), wxMAJOR_VERSION,