diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 410b2c1e37..c4762c828e 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -81,7 +81,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 }