Skip to content

Commit

Permalink
hotfix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonMyungLim committed Nov 4, 2016
1 parent 5428aa5 commit c1d101b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -23325,8 +23325,8 @@ Entry.RenderView = function(b, a, d) {
for (var b = 0, c = this._getHorizontalPadding(), e = 0, f = a.length;e < f;e++) {
var g = a[e].getFirstBlock().view, h = g.svgGroup.getBBox().height, k = 0, l = $(g.svgGroup).find(".extension");
if (l) {
for (e = 0;e < l.length;e++) {
var m = parseFloat(l[e].getAttribute("x")), k = Math.min(k, m)
for (var m = 0;m < l.length;m++) {
var n = parseFloat(l[m].getAttribute("x")), k = Math.min(k, n)
}
}
this._minBlockOffsetX = Math.min(this._minBlockOffsetX, g.offsetX);
Expand Down
8 changes: 4 additions & 4 deletions dist/entry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/workspace/renderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ Entry.RenderView = function(dom, align, scale) {
var xPos = 0;
var extensions = $(blockView.svgGroup).find('.extension');
if (extensions) {
for (var i=0; i<extensions.length; i++) {
var ext = extensions[i];
for (var j=0; j<extensions.length; j++) {
var ext = extensions[j];
var currentXpos = parseFloat(ext.getAttribute('x'));
xPos = Math.min(xPos, currentXpos);
}
Expand Down

0 comments on commit c1d101b

Please sign in to comment.