fix #833 Widgets cursor position is incorrect