Fix legends height changing when the value changes

I'm using system monitor widgets on a fit content panel and this bug causes it to change the whole panel height constantly:

Screencast_20250501_225500

Merge request reports

Loading