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:
parent
148dc11f88
commit
7c32ef2ba3
@ -66,6 +66,7 @@ wxMSW:
|
||||
|
||||
wxOSX:
|
||||
|
||||
- Remove extra borders around wxFilePickerCtrl (John Roberts).
|
||||
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user