Fix for non-autoresizing legend view

[#53560795]