mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-09 00:43:23 +01:00
Fix error when press enter over a isolated node
Fix prediction error when the node is a isolated node.
This commit is contained in:
parent
da6859313b
commit
28bbc4c846
@ -473,7 +473,7 @@ mindplot.Designer = new Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
var topic = nodes[0];
|
var topic = nodes[0];
|
||||||
if (topic.getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
|
if (!topic.getOutgoingConnectedTopic()) { // Central topic and isolated topics ....
|
||||||
// Central topic doesn't have siblings ...
|
// Central topic doesn't have siblings ...
|
||||||
this.createChildForSelectedNode();
|
this.createChildForSelectedNode();
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ mindplot.layout.SymmetricSorter = new Class({
|
|||||||
|
|
||||||
// Fit at the bottom
|
// Fit at the bottom
|
||||||
if (!nodeAfter && position.y > parentChild.getPosition().y) {
|
if (!nodeAfter && position.y > parentChild.getPosition().y) {
|
||||||
var order = graph.getParent(node).getId() == parent.getId() ?
|
var order = (graph.getParent(node) && graph.getParent(node).getId() == parent.getId()) ?
|
||||||
last.getOrder() : last.getOrder() + 1;
|
last.getOrder() : last.getOrder() + 1;
|
||||||
var position = {
|
var position = {
|
||||||
x:parentChild.getPosition().x,
|
x:parentChild.getPosition().x,
|
||||||
|
Loading…
Reference in New Issue
Block a user