From 8a059c05cbfc5b7d89fe23167f0abb45c4b4c09e Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 7 Jan 2025 13:53:28 +0300 Subject: [PATCH] Slightly reduce row height in LIB_TREE on GTK. --- common/widgets/lib_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/widgets/lib_tree.cpp b/common/widgets/lib_tree.cpp index 2303771f50..bff8f65b4e 100644 --- a/common/widgets/lib_tree.cpp +++ b/common/widgets/lib_tree.cpp @@ -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