hack for window width/height adjustment