Skip to content

Commit

Permalink
Merge pull request #1563 from umple/issue#1409
Browse files Browse the repository at this point in the history
Fixes #1409 "Cursor jumps to start of text window in UmpleOnline"
  • Loading branch information
TimLethbridge committed Jun 14, 2020
2 parents 7cc45ec + b9d4e9f commit 35cc514
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion umpleonline/scripts/allumple-min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion umpleonline/scripts/umple_action.js
Expand Up @@ -1650,7 +1650,9 @@ Action.processTyping = function(target, manuallySynchronized)

// issue#1554
var downloadLink = document.getElementById("downloadLink");
downloadLink.remove();
if (downloadLink !== null){
downloadLink.remove();
}

Page.enablePaletteItem("buttonSyncDiagram", false);
}
Expand Down
10 changes: 6 additions & 4 deletions umpleonline/scripts/umple_system.js
Expand Up @@ -393,10 +393,12 @@ UmpleSystem.update = function()
this.umpleAssociations[i].setOffsetTwoPosition(screenPosition2);
UmpleSystem.redrawAssociation(this.umpleAssociations[i]);
}
for(var i = 0; i<this.umpleClasses.length;++i)
{
UmpleSystem.trimOverlappingAssociations(this.umpleClasses[i]);
}
// issue#1409 this block of code will trim blank part of the diagram,
// which makes the diagram look worse and will eventually call the updateUmpleTextCallback() that set the cursor to positon (0,0).
// for(var i = 0; i<this.umpleClasses.length;++i)
// {
// UmpleSystem.trimOverlappingAssociations(this.umpleClasses[i]);
// }

}

Expand Down

0 comments on commit 35cc514

Please sign in to comment.