res:dock:: fix dock applets get wrong position.

if dock applet window is shown and is changed, the window will get wrong
position.

reason:
this situation is not handled.

solution:
abstract a function named moveApplet to handle that.

Change-Id: I4d8be9077729aa58ddc1cbb4ba46a3d9d764d87c