Add preference for line wrapping in diff preferences

Previously in Polygerrit, diff views were always displayed in the width
specified in diff preferences. This change gives the option to wrap
lines instead, which takes precedence over column width (the column
width option is hidden when line wrapping is selected), and fits the
diff view to screen.

The gerrit API already supports the 'lineWrapping' preference so this
change uses that already existing option.

Feature: Issue 4809
Change-Id: I0d9e292739b5910abfd04af63ec4c745bf06e446
This commit is contained in:
Becky Siegel
2016-10-31 14:35:35 -07:00
parent 247fa2388e
commit e7d19a9976
15 changed files with 207 additions and 32 deletions

View File

@@ -546,6 +546,7 @@ limitations under the License.
assert.isTrue(scrollStub.called);
document.body.style.height =
originalHeight + 'px';
scrollStub.restore();
done();
});
document.body.style.height = '10000px';