Merge pull request #427 from xia-sava/feature/fix-device-ratio

#426 fix windows size on customized Windows desktop dpi scaling
revert 60c3c1d1 thanks Chrome38 handles dpi scaling correctly & prevent the issue when window.outerWidth == 0