7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 19:39:35 +00:00

Slightly reduce row height in LIB_TREE on GTK.

This commit is contained in:
Alex Shvartzkop 2025-01-07 13:53:28 +03:00
parent d989a3ec69
commit 8a059c05cb

View File

@ -178,7 +178,7 @@ LIB_TREE::LIB_TREE( wxWindow* aParent, const wxString& aRecentSearchesKey, LIB_T
#ifdef __WXGTK__
// The GTK renderer seems to calculate row height incorrectly sometimes; but can be overridden
int rowHeight = FromDIP( 8 ) + GetTextExtent( wxS( "pdI" ) ).y;
int rowHeight = FromDIP( 6 ) + GetTextExtent( wxS( "pdI" ) ).y;
m_tree_ctrl->SetRowHeight( rowHeight );
#endif