-
- rect.SetLeft( wxMax(0, left) );
- rect.SetTop( wxMax(0, top) );
+
+ // Make the edit control large enough to allow for internal margins
+ // TODO: remove this if the text ctrl sizing is improved esp. for unix
+ //
+#if defined (__WXMOTIF__)
+ rect.SetLeft( wxMax(0, left-4) );
+ rect.SetTop( wxMax(0, top-4) );
+ rect.SetRight( rect.GetRight() + 8 );
+ rect.SetBottom( rect.GetBottom() + 8 );
+#else
+ rect.SetLeft( wxMax(0, left-2) );
+ rect.SetTop( wxMax(0, top-2) );
+ rect.SetRight( rect.GetRight() + 4 );
+ rect.SetBottom( rect.GetBottom() + 4 );
+#endif