windows: don't accidental scroll when expanding a window with a codeeditor'