mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
Fix bug on collapse node.
This commit is contained in:
parent
9a8c2a0e97
commit
887c799fc9
@ -445,6 +445,11 @@ class Designer extends Events {
|
||||
const mindmap = parentModel.getMindmap();
|
||||
const childModel = mindmap.createNode();
|
||||
|
||||
// If node is shink, expand ...
|
||||
if (topic.areChildrenShrunken()) {
|
||||
topic.setChildrenShrunken(false);
|
||||
}
|
||||
|
||||
// Create a new node ...
|
||||
const layoutManager = this._eventBussDispatcher.getLayoutManager();
|
||||
const result = layoutManager.predict(topic.getId(), null, mousePos);
|
||||
|
@ -633,7 +633,6 @@ abstract class Topic extends NodeGraph {
|
||||
});
|
||||
}
|
||||
|
||||
/** */
|
||||
areChildrenShrunken(): boolean {
|
||||
const model = this.getModel();
|
||||
return model.areChildrenShrunken() && !this.isCentralTopic();
|
||||
|
Loading…
Reference in New Issue
Block a user