fix #463 Focus on element inside Dialog widget not working on IE7

After dialog popup open, the $focus called from the callback it's not applied to the element.
(cherry picked from commit 3f164e5d773c27e102eaa1fd6d86f9563e7d97dc)
1.3.1B