mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix visual optimization for Linux
This commit is contained in:
parent
899e3530f5
commit
948a282197
1 changed files with 3 additions and 2 deletions
|
|
@ -180,8 +180,9 @@ public:
|
|||
wxString position;
|
||||
position = wxString::Format("lines %d,hieght 1 row %d full h=%d", lines, txtSize.GetHeight(), txtSize.GetHeight() * lines + 1 * lines);
|
||||
#ifdef __WXGTK__
|
||||
wxSize charSize = GetTextExtent("H");
|
||||
txtSize.SetHeight(txtSize.GetHeight() + charSize.GetHeight()/2);
|
||||
txtSize.SetWidth(txtSize.GetWidth()+12); // -1 no work in GTK
|
||||
txtSize.SetHeight(txtSize.GetHeight()+8); // -1 no work in GTK
|
||||
return txtSize;
|
||||
#else
|
||||
txtSize.SetHeight(txtSize.GetHeight() * lines + 1 * lines);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue