Correct positioning of wxTextCtrl in wxPropertyGrid for wxMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-10-14 12:32:01 +00:00
parent cc378c2d75
commit 012b4a0790
2 changed files with 4 additions and 4 deletions

View File

@@ -123,7 +123,7 @@
#define wxPG_NAT_BUTTON_BORDER_X 0
#define wxPG_NAT_BUTTON_BORDER_Y 0
#define wxPG_TEXTCTRLYADJUST 3
#define wxPG_TEXTCTRLYADJUST 0
#else
// defaults
@@ -1652,7 +1652,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
// Need to reduce width of text control on Mac
#if defined(__WXMAC__)
s.x -= 8;
s.x -= 8;
#endif
// Take button into acccount
@@ -1680,7 +1680,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
#endif
SetupTextCtrlValue(value);
tc->Create(ctrlParent,id,value, p, s,tcFlags);
wxWindow* ed = tc;
// Center the control vertically