window can be resized without video and video border becoming misaligned