1. add including margin size for the popup's position.
2. fine tune SelectWidget