res:dock:: fix dock get wrong size.

the blockJS uses loop to block, which seems to lead to losing signal.
using setTimeout to fix it.