res:dock:: fix preview problem.

the preview window is not shown after dock is shown from hidden.

reason:
the state is changed too later.

solution:
using webkitTransitionEnd event instead of setTimeout.

Change-Id: I75fd348ff33fc243422ab2c566a6876462d43b53