res:dock:: fix bugs.

dragging a docked item to dock, the dock won't be reset.