Fixed best sizes for wxUniv controls.
Many wxUniv controls had a way too small best size which was noticeable when running e.g. the widgets sample. Regression started in r61169 where wxWindowBase::DoGetClientBestSize() was introduced but that virtual function already existed in wxUniv's wxWindow. Removing wxUniv's wxWindow::DoGetBestSize and wxWindow::DoGetBestClientSize fixes sizing issues. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -718,16 +718,6 @@ void wxWindow::OnSize(wxSizeEvent& event)
|
||||
#endif
|
||||
}
|
||||
|
||||
wxSize wxWindow::DoGetBestSize() const
|
||||
{
|
||||
return AdjustSize(DoGetBestClientSize());
|
||||
}
|
||||
|
||||
wxSize wxWindow::DoGetBestClientSize() const
|
||||
{
|
||||
return wxWindowNative::DoGetBestSize();
|
||||
}
|
||||
|
||||
wxSize wxWindow::DoGetBorderSize() const
|
||||
{
|
||||
return AdjustSize(wxSize(0, 0));
|
||||
|
Reference in New Issue
Block a user