mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +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 ...
|
||||
var topic = nodes[0];
|
||||
this._actionDispatcher.shrinkBranch([topic.getId()], !topic.areChildrenShrunken());
|
||||
|
||||
if (topic.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
|
||||
this._actionDispatcher.shrinkBranch([topic.getId()], !topic.areChildrenShrunken());
|
||||
}
|
||||
},
|
||||
|
||||
createChildForSelectedNode:function () {
|
||||
|
@ -598,7 +598,7 @@ mindplot.Topic = new Class({
|
||||
|
||||
areChildrenShrunken:function () {
|
||||
var model = this.getModel();
|
||||
return model.areChildrenShrunken();
|
||||
return model.areChildrenShrunken() && !this.isCentralTopic();
|
||||
},
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user