Remove extra borders around wxFilePickerCtrl in wxOSX

Don't use extra borders to reserve space for the focus ring, this breaks
alignment of wxFilePickerCtrl with the other controls.

Closes #17416.
This commit is contained in:
John Roberts 2016-03-04 14:56:17 +01:00 committed by Vadim Zeitlin
parent 148dc11f88
commit 7c32ef2ba3
2 changed files with 3 additions and 15 deletions

View File

@ -66,6 +66,7 @@ wxMSW:
wxOSX:
- Remove extra borders around wxFilePickerCtrl (John Roberts).
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).

View File

@ -152,25 +152,12 @@ protected:
int GetDefaultPickerCtrlFlag() const
{
// on macintosh, without additional borders
// there's not enough space for focus rect
return wxALIGN_CENTER_VERTICAL
#ifdef __WXMAC__
| wxTOP | wxRIGHT | wxBOTTOM
#endif
;
return wxALIGN_CENTER_VERTICAL;
}
int GetDefaultTextCtrlFlag() const
{
// on macintosh, without wxALL there's not enough space for focus rect
return wxALIGN_CENTER_VERTICAL
#ifdef __WXMAC__
| wxALL
#else
| wxRIGHT
#endif
;
return wxALIGN_CENTER_VERTICAL | wxRIGHT;
}
void PostCreation();