Skip to content

Commit

Permalink
Update min size for code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Jan 20, 2018
1 parent cd3c397 commit 100603e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/graphics/joint.shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,14 @@ joint.shapes.ice.ModelView = joint.dia.ElementView.extend({
return;
}

var type = self.model.get('type');
var size = self.model.get('size');
var state = self.model.get('state');
var gridstep = 8 * 2;
var minSize = { width: 64, height: 32 };
var minSize = {
width: type === 'ice.Code' ? 96 : 64,
height: type === 'ice.Code' ? 64 : 32
};

var clientCoords = snapToGrid({ x: event.clientX, y: event.clientY });
var oldClientCoords = snapToGrid({ x: self._clientX, y: self._clientY });
Expand Down

0 comments on commit 100603e

Please sign in to comment.