X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f499ca450c3863cea52f7b7f77aa7eecc942b552..b6bc47efde69c1d2a62f83879f364998f265bc2a:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 410b2c1e37..2d3d87496c 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -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); } @@ -81,7 +86,14 @@ public: wxSizerFlags& Border(int direction = wxALL) { // FIXME: default border size shouldn't be hardcoded +#ifdef __SMARTPHONE__ + // no borders by default on limited size screen + wxUnusedVar(direction); + + return *this; +#else return Border(direction, 5); +#endif }