fix: Editor: Fix editor re-sizing problems on Windows
https://bugs.activestate.com/show_bug.cgi?id=104049
rn=

(integrated from trunk branch change 8f2d788 by Todd Whiteman <toddw@activestate.com>)