documented Fit() brokenness if sizers are not used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-06 21:54:08 +00:00
parent df3dc50b64
commit b19d494be1

View File

@@ -522,7 +522,16 @@ The search is recursive in both cases.
\func{virtual void}{Fit}{\void}
Sizes the window so that it fits around its subwindows. This function won't do
anything if there are no subwindows.
anything if there are no subwindows and will only really work correctly if the
sizers are used for the subwindows layout. Also, if the window has exactly one
subwindow it is better (faster and the result is more precise as Fit adds some
margin to account for fuzziness of its calculations) to call
\begin{verbatim}
window->SetClientSize(child->GetSize());
\end{verbatim}
instead of calling Fit.
\membersection{wxWindow::FitInside}\label{wxwindowfitinside}