mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-06-30 06:12:11 -06:00
Disable Ellipsize for wxGTK.
Отключено так как на wxGTK работает медленно если в ячейках большие тексты.
This commit is contained in:
parent
798b995deb
commit
30c8cefe21
1 changed files with 5 additions and 0 deletions
|
|
@ -1430,6 +1430,10 @@ retry:
|
|||
|
||||
if (!multiline) {
|
||||
//int textWidth = dc.GetTextExtent(text).GetWidth();
|
||||
#ifdef __WXGTK__
|
||||
// Ellipsize working slow in GTK
|
||||
const wxString& ellipsizedText = text;
|
||||
#else
|
||||
wxEllipsizeMode mode(wxELLIPSIZE_END);
|
||||
if (hAlign == wxALIGN_RIGHT) mode = wxELLIPSIZE_START;
|
||||
const wxString& ellipsizedText = wxControl::Ellipsize
|
||||
|
|
@ -1440,6 +1444,7 @@ retry:
|
|||
rect.GetWidth() - 2,
|
||||
wxELLIPSIZE_FLAGS_NONE
|
||||
);
|
||||
#endif
|
||||
if (ellipsizedText != text)
|
||||
text = ellipsizedText; // small width
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue