win.adjustScreenSize() not working

Does this post help?