allow width and height on window to be 0