mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Central node never can be collapsed.
This commit is contained in:
parent
ebd6f886d5
commit
12448fc6cb
@ -440,8 +440,9 @@ mindplot.Designer = new Class({
|
|||||||
}
|
}
|
||||||
// Execute event ...
|
// Execute event ...
|
||||||
var topic = nodes[0];
|
var topic = nodes[0];
|
||||||
|
if (topic.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
|
||||||
this._actionDispatcher.shrinkBranch([topic.getId()], !topic.areChildrenShrunken());
|
this._actionDispatcher.shrinkBranch([topic.getId()], !topic.areChildrenShrunken());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
createChildForSelectedNode:function () {
|
createChildForSelectedNode:function () {
|
||||||
|
@ -598,7 +598,7 @@ mindplot.Topic = new Class({
|
|||||||
|
|
||||||
areChildrenShrunken:function () {
|
areChildrenShrunken:function () {
|
||||||
var model = this.getModel();
|
var model = this.getModel();
|
||||||
return model.areChildrenShrunken();
|
return model.areChildrenShrunken() && !this.isCentralTopic();
|
||||||
},
|
},
|
||||||
|
|
||||||
isCollapsed:function () {
|
isCollapsed:function () {
|
||||||
|
@ -92,7 +92,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (topic.areChildrenShrunken()) {
|
if (topic.areChildrenShrunken() && topic.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
|
||||||
parentTopic.setAttribute('shrink', 'true');
|
parentTopic.setAttribute('shrink', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user