made border work for default window size