- // default height
- tsize.y = GTKGetPreferredSize(m_widget).y;
- // Add the margins we have previously set, but only the horizontal border
- // as vertical one has been taken account at GTKGetPreferredSize().
- // Also get other GTK+ margins.
- tsize.IncBy( GTKGetEntryMargins(GetEntry()).x, 0);
+ if ( HasFlag(wxBORDER_NONE) )
+ {
+ tsize.y = cHeight;
+#ifdef __WXGTK3__
+ tsize.IncBy(9, 0);
+#else
+ tsize.IncBy(4, 0);
+#endif // GTK3
+ }
+ else
+ {
+ // default height
+ tsize.y = GTKGetPreferredSize(m_widget).y;
+ // Add the margins we have previously set, but only the horizontal border
+ // as vertical one has been taken account at GTKGetPreferredSize().
+ // Also get other GTK+ margins.
+ tsize.IncBy( GTKGetEntryMargins(GetEntry()).x, 0);
+ }