diff --git a/common/lib_tree_model_adapter.cpp b/common/lib_tree_model_adapter.cpp index a278cc4e7b..b76ca1e363 100644 --- a/common/lib_tree_model_adapter.cpp +++ b/common/lib_tree_model_adapter.cpp @@ -47,7 +47,9 @@ public: wxSize GetSize() const override { - return wxSize( GetOwner()->GetWidth(), GetTextExtent( m_text ).y ); + wxSize size( GetOwner()->GetWidth(), GetTextExtent( m_text ).y ); + size.IncBy( 2, 2 ); + return size; } bool GetValue( wxVariant& aValue ) const override