[Tech] fixed bug: when resizing the window, jQuery could not get the
real window size.