Added option to fill window or parent element