fixed bug in wxSizerFlags::Align/Expand() methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-11-29 23:05:50 +00:00
parent b1727cfef7
commit 00dc67b891

View File

@ -54,14 +54,19 @@ public:
wxSizerFlags& Align(int alignment) // combination of wxAlignment values
{
m_flags &= wxALL;
m_flags &= wxALIGN_MASK;
m_flags |= alignment;
return *this;
}
wxSizerFlags& Expand()
{
m_flags |= wxEXPAND;
return *this;
}
// some shortcuts for Align()
wxSizerFlags& Expand() { return Align(wxEXPAND); }
wxSizerFlags& Centre() { return Align(wxCENTRE); }
wxSizerFlags& Center() { return Centre(); }
wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }