add Popup keepInView option, close #1308