[turbolizer] View whole graph after phase change
..instead of wrongly keeping the location from the previous view if the selection became empty after attaching it. Change-Id: I606010ad86034c2ec06e00c82143a22ca2d88274 Notry: true Bug: v8:7327 Reviewed-on: https://chromium-review.googlesource.com/c/1407055 Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#58788}
This commit is contained in:
parent
13e07389ff
commit
ad6c02afbd
@ -235,7 +235,7 @@ export class GraphView extends View implements PhaseView {
|
||||
this.createGraph(data.data, rememberedSelection);
|
||||
this.broker.addNodeHandler(this.selectionHandler);
|
||||
|
||||
if (rememberedSelection != null) {
|
||||
if (rememberedSelection != null && rememberedSelection.size > 0) {
|
||||
this.attachSelection(rememberedSelection);
|
||||
this.connectVisibleSelectedNodes();
|
||||
this.viewSelection();
|
||||
|
Loading…
Reference in New Issue
Block a user