Use CodeMirror update event to resize inline widgets. Fix #2520 to remove offsetTopChanged.