Tweaks to wxTimeCtrl for wxMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-09-24 19:55:19 +00:00
parent 74f4b82837
commit 7174c830f7

View File

@@ -112,6 +112,8 @@ class wxTimeCtrl(wxTextCtrl):
testText = '00:00:00X' # give it a little extra space
else:
testText = '00:00:00 XXX' # give it a little extra space
if wxPlatform == "__WXMAC__":
testText += 'X'
w, h = self.GetTextExtent(testText)
self.SetClientSize( (w+4, self.GetClientSize().height) )