Fixing height limit for legend