Fixing init value of custom zoom widget (#18331)

This commit is contained in:
Aasim Khan
2022-02-11 17:32:07 -08:00
committed by GitHub
parent 54eb7db261
commit d76f239ae2

View File

@@ -37,7 +37,7 @@ export class CustomZoomWidget extends QueryPlanWidgetBase {
});
attachInputBoxStyler(this.customZoomInputBox, this.themeService);
const currentZoom = queryPlanView.azdataGraphDiagram.graph.view.getScale();
const currentZoom = queryPlanView.azdataGraphDiagram.graph.view.getScale() * 100;
// Setting initial value to graph's current zoom
this.customZoomInputBox.value = Math.round(currentZoom).toString();