Files
gerrit/polygerrit-ui/app/elements/diff/gr-diff-cursor
Ole Rehmsen 55dca5fe3a Make reinitializing cursor explicit
Initializing the cursor potentially does disruptive things like stealing
the cursor and scrolling the page - the behavior to do this on every
render should not be baked into gr-diff(-cursor). Instead, it is better
if pages that want this behavior trigger it explicitly.

The list view already does that (by calling `handleDiffUpdate()`)
when its done rendering all diffs.

This change
* makes gr-diff-view ("the file page") call reInitCursor explicitly when
  done  rendering
* removes that behavior from the reusable gr-diff-cursor

One positive side-effect is that on the list view, we have less
duplicate cursor initializations (after every diff renders, and then
again when they are all done rendering).

Change-Id: I04602bec25af753ec923914db4b5be8b33a45449
2020-03-31 14:46:38 +02:00
..