res:dock:: fix input region problem.

dock gets wrong input region after switching mode.

reason:
the _base_rect should be updated.

solution:
update _base_rect and then send a message to JS to update dock region to avoid
the fact that dock input region gets a rectangle with screen width.

NOTE: add a little output for debug.

Change-Id: Ib9472df9d5ba2e682cc1e1ce9b1fe3867c6dc41a