window.info_screenwidth() should be used instead of just window.info_width()!
window.info_screenwidth()
window.info_width()