projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding principal class for command line builds (High Resolution Support), changing...
[wxWidgets.git]
/
src
/
common
/
wincmn.cpp
diff --git
a/src/common/wincmn.cpp
b/src/common/wincmn.cpp
index ae072ece15b39481f86ec380f301b90a21b41e51..13370f51c630f8e449b635438ae1240d04c2449a 100644
(file)
--- a/
src/common/wincmn.cpp
+++ b/
src/common/wincmn.cpp
@@
-620,20
+620,13
@@
void wxWindowBase::DoCentre(int dir)
// fits the window around the children
void wxWindowBase::Fit()
{
// fits the window around the children
void wxWindowBase::Fit()
{
- if ( !GetChildren().empty() )
- {
- SetSize(GetBestSize());
- }
- //else: do nothing if we have no children
+ SetSize(GetBestSize());
}
// fits virtual size (ie. scrolled area etc.) around children
void wxWindowBase::FitInside()
{
}
// fits virtual size (ie. scrolled area etc.) around children
void wxWindowBase::FitInside()
{
- if ( GetChildren().GetCount() > 0 )
- {
- SetVirtualSize( GetBestVirtualSize() );
- }
+ SetVirtualSize( GetBestVirtualSize() );
}
// On Mac, scrollbars are explicitly children.
}
// On Mac, scrollbars are explicitly children.