res:dock:: fix region problem.

the region is not updated in time.