Bug Fix #6822

Provide maxSize to be 45% of window width if element is side bar and maxSize is not specified