res:dock:: fix system tray problem.

1. fix input region gets wrong when mouse is out of system tray.
2. change preview border size when the window size is changed.