Fix invalid use of wxSizer flags inside the library itself.
It doesn't make sense to use wxALIGN_CENTRE_VERTICAL with wxGROW, so remove the alignment style.
This commit is contained in:
@@ -91,9 +91,10 @@ public: // public API
|
||||
{
|
||||
int f = GetDefaultPickerCtrlFlag();
|
||||
if ( grow )
|
||||
{
|
||||
f &= ~wxALIGN_MASK;
|
||||
f |= wxGROW;
|
||||
else
|
||||
f &= ~wxGROW;
|
||||
}
|
||||
|
||||
GetPickerCtrlItem()->SetFlag(f);
|
||||
}
|
||||
@@ -153,7 +154,7 @@ protected:
|
||||
{
|
||||
// on macintosh, without additional borders
|
||||
// there's not enough space for focus rect
|
||||
return wxALIGN_CENTER_VERTICAL|wxGROW
|
||||
return wxALIGN_CENTER_VERTICAL
|
||||
#ifdef __WXMAC__
|
||||
| wxTOP | wxRIGHT | wxBOTTOM
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user