mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Undo pan/zoom after unselecting a node
This commit is contained in:
@@ -350,6 +350,10 @@ const NodesChart = React.createClass({
|
||||
},
|
||||
|
||||
restoreLayout: function(state) {
|
||||
// undo any pan/zooming that might have happened
|
||||
this.zoom.scale(state.scale);
|
||||
this.zoom.translate(state.panTranslate);
|
||||
|
||||
const nodes = state.nodes.map(node => {
|
||||
return node.merge({
|
||||
x: node.get('px'),
|
||||
|
||||
Reference in New Issue
Block a user