On Thursday, September 5, 2019 9:04:04 AM MDT tony f wrote:
> I have that checked and also changed the Diff Width setting to 300, but the
> lines are still wrapping. I did try stretching my browser window across 2
> screens so that the old is on one screen and the new on the second, but
> even then, some lines are too long and automatically wrap. Yes, it is a bad
> idea for developers to create such long lines of code, but I can't control
> that unfortunately. It would just be nice to have the Word Wrap option
> again that we can turn on or off so that when it is off, the lines do not
> wrap and we get horizontal scroll bars, just as we had in the older version
> of Diff.
In the original diff screen, there was a single scrollbar and it was useful to
be able to view the content of new files such as here:
https://gerrit-review.googlesource.com/c/gerrit/+/45524/12/gerrit-gwtui/src/
main/java/com/google/gerrit/client/changes/ChangeFileApi.java
By scrolling the left side of the screen, which was empty since it's a new
file, all the way out of view so that the new content on the right side could
take up the entire view port without wasting half the viewport with a blank
page.
I hope that we might consider no longer disabling the built-in browser
horizontal scrollbar which allows users to use the browser to its fullest
potential, and to thus re-enable this very useful viewing mode again in the
diff screen,
-Martin
--
The Qualcomm Innovation Center, Inc. is a member of Code
Aurora Forum, hosted by The Linux Foundation