Fix HAL-263: Auto adjust window size by 20%