Only height should be increased for LIB_TREE_RENDERER.

This commit is contained in:
Alex Shvartzkop 2024-01-16 22:04:30 +03:00
parent ac59fae152
commit fba6aaf0e8
1 changed files with 1 additions and 3 deletions

View File

@ -47,9 +47,7 @@ public:
wxSize GetSize() const override
{
wxSize size( GetOwner()->GetWidth(), GetTextExtent( m_text ).y );
size.IncBy( 2, 2 );
return size;
return wxSize( GetOwner()->GetWidth(), GetTextExtent( m_text ).y + 2 );
}
bool GetValue( wxVariant& aValue ) const override