res:dock:: fix hide problem.

reason:
the condition to set region failed.

Change-Id: Id0f4e35e8dbb4aeb56d5d9d0eac7ef48ac5fd520