fixed wxScrolledWindow best size calculation: compute something (this was broken after 2.8) and don't use current size in computation; also removed now-unused ScrollGetWindowSizeForVirtualSize() method to simplify the code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-12-21 22:47:55 +00:00
parent 8a6a997fb0
commit 7d616e99ed
3 changed files with 45 additions and 39 deletions

View File

@@ -1518,14 +1518,6 @@ protected:
// same size as it would have after a call to Fit()
virtual wxSize DoGetBestSize() const;
// called from DoGetBestSize() to convert best virtual size (returned by
// the window sizer) to the best size for the window itself; this is
// overridden at wxScrolledWindow level to clump down virtual size to real
virtual wxSize GetWindowSizeForVirtualSize(const wxSize& size) const
{
return size;
}
// this is the virtual function to be overriden in any derived class which
// wants to change how SetSize() or Move() works - it is called by all
// versions of these functions in the base class