Skip to content

Commit

Permalink
fix diff viewer not scrolling till the end (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jun 3, 2020
1 parent 096243b commit 8541ee2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class DownstreamWatchVersionDiff extends React.Component {
for (const filename of filesToInclude) {
const firstNumOfLines = firstApplicationTree.files[filename] ? firstApplicationTree.files[filename].split("\n").length : 0;
const secondNumOfLines = secondApplicationTree.files[filename] ? secondApplicationTree.files[filename].split("\n").length : 0;
const maxNumOfLines = Math.max(firstNumOfLines, secondNumOfLines);
const maxNumOfLines = Math.max(firstNumOfLines, secondNumOfLines) + 1;

diffEditors.push(<div className="DiffEditor flex-column" key={filename} style={{ height: maxNumOfLines * 23 }}>
<DiffEditor
Expand Down

0 comments on commit 8541ee2

Please sign in to comment.