Introduced new legend block properties for legend fitting

fitWidth and fitHeight new properties