Only test for centre flag of minor direction and ignore the other in wxBoxSizer (as before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e66a89eda9
commit
1a27a87d53
@ -1987,7 +1987,7 @@ void wxBoxSizer::RecalcSizes()
|
||||
}
|
||||
// NB: wxCENTRE is used here only for backwards compatibility,
|
||||
// wxALIGN_CENTRE should be used in new code
|
||||
else if ( flag & (wxCENTER | wxALIGN_CENTRE) )
|
||||
else if ( flag & (wxCENTER | (IsVertical() ? wxALIGN_CENTRE_HORIZONTAL : wxALIGN_CENTRE_VERTICAL)))
|
||||
{
|
||||
PosInMinorDir(posChild) += (totalMinorSize - minorSize) / 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user