Notebook editor layout glitch while resizing #100224
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
notebook
verified
Verification succeeded
Milestone
Seems like the basic issue is that here, we are using the old scrollWidth to compute the new height, with the new total width, so when sizing the editor to be smaller,
scrollWidth
is always> width
. I see the same wrong computation in a basic text editor, but I guess it's not a problem when the height is wrong there.vscode/src/vs/editor/common/viewLayout/viewLayout.ts
Line 218 in b95c725
This fixes it
but I really have no clue if that's the right thing to do, also
scrollWidth
is used in_updateHeight
. I think that's ok because that's not called when these numbers are changing soscrollWidth
will just be equal tocontentWidth
orwidth
.The text was updated successfully, but these errors were encountered: