rhbz910191 - hook into window resize event to avoid distorted code mirror editor(tiny scrollbar)