Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing call to UpdateViewport::UpdateViewport during tearout (#1…
…5175) This bug causes AtlasEngine to render buffer contents with an incorrect `cellCount`, which may either cause it to draw the contents only partially, or potentially access the TextBuffer contents out of bounds. `EnablePainting` sets the `_viewport` to the current viewport for some unfortunate (and quite buggy/incorrect) caching purposes, which causes `_CheckViewportAndScroll()` to think that the viewport hasn't changed in the new window. We can ensure `_CheckViewportAndScroll()` works by also setting `_forceUpdateViewport` to `true`. Part of #14957 ## PR Checklist * Tear out a tab from a smaller window to a larger window * Renderer contents adept to the larger window size ✅ --------- Co-authored-by: Mike Griese <migrie@microsoft.com> Co-authored-by: Dustin L. Howett <duhowett@microsoft.com>
- Loading branch information