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:
committed by
Vadim Zeitlin
parent
148dc11f88
commit
7c32ef2ba3
@@ -66,6 +66,7 @@ wxMSW:
|
|||||||
|
|
||||||
wxOSX:
|
wxOSX:
|
||||||
|
|
||||||
|
- Remove extra borders around wxFilePickerCtrl (John Roberts).
|
||||||
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).
|
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).
|
||||||
|
|
||||||
|
|
||||||
|
@@ -152,25 +152,12 @@ protected:
|
|||||||
|
|
||||||
int GetDefaultPickerCtrlFlag() const
|
int GetDefaultPickerCtrlFlag() const
|
||||||
{
|
{
|
||||||
// on macintosh, without additional borders
|
return wxALIGN_CENTER_VERTICAL;
|
||||||
// there's not enough space for focus rect
|
|
||||||
return wxALIGN_CENTER_VERTICAL
|
|
||||||
#ifdef __WXMAC__
|
|
||||||
| wxTOP | wxRIGHT | wxBOTTOM
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetDefaultTextCtrlFlag() const
|
int GetDefaultTextCtrlFlag() const
|
||||||
{
|
{
|
||||||
// on macintosh, without wxALL there's not enough space for focus rect
|
return wxALIGN_CENTER_VERTICAL | wxRIGHT;
|
||||||
return wxALIGN_CENTER_VERTICAL
|
|
||||||
#ifdef __WXMAC__
|
|
||||||
| wxALL
|
|
||||||
#else
|
|
||||||
| wxRIGHT
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PostCreation();
|
void PostCreation();
|
||||||
|
Reference in New Issue
Block a user