Fix changing layout
parent
4380bd2273
commit
0ab3f2a5f9
|
@ -277,7 +277,9 @@ export default class GraphContainer extends Component {
|
|||
|
||||
relayout() {
|
||||
closeTooltip();
|
||||
this.clearScale();
|
||||
sigma.layouts.stopForceLink();
|
||||
|
||||
if (appStore.dagre) {
|
||||
sigma.layouts.dagre.start(this.state.sigmaInstance);
|
||||
} else {
|
||||
|
|
|
@ -312,6 +312,7 @@ if (!existsSync(imagepath)){
|
|||
global.closeTooltip = function(){
|
||||
if (appStore.currentTooltip !== null){
|
||||
appStore.currentTooltip.close();
|
||||
appStore.currentTooltip = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue