Listen to more change to adjust the position of popup panel.

Signed-off-by: johnmave126 <johnmave126@gmail.com>