Skip to content

Commit

Permalink
Fixes #89571: Use word-wrap: break-word when computing line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jan 30, 2020
1 parent c27b6b0 commit 42f7084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/editor/browser/view/domLineBreaksComputer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function createLineBreaks(requests: string[], fontInfo: FontInfo, tabSize: numbe

containerDomNode.style.position = 'absolute';
containerDomNode.style.top = '10000';
containerDomNode.style.wordWrap = 'break-word';
document.body.appendChild(containerDomNode);

let range = document.createRange();
Expand Down

0 comments on commit 42f7084

Please sign in to comment.