Fix wxWrapSizer minimal size calculation.
Add a unit test checking that wxWrapSizer::CalcMin() returns the expected results. Closes #12464. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -853,6 +853,16 @@ wxSize wxWindowBase::GetWindowBorderSize() const
|
||||
return size*2;
|
||||
}
|
||||
|
||||
bool
|
||||
wxWindowBase::InformFirstDirection(int direction,
|
||||
int size,
|
||||
int availableOtherDir)
|
||||
{
|
||||
return GetSizer() && GetSizer()->InformFirstDirection(direction,
|
||||
size,
|
||||
availableOtherDir);
|
||||
}
|
||||
|
||||
wxSize wxWindowBase::GetEffectiveMinSize() const
|
||||
{
|
||||
// merge the best size with the min size, giving priority to the min size
|
||||
|
Reference in New Issue
Block a user