Commit eb7518f8 authored by Akikonata's avatar Akikonata

added space bottom

parent d1548536
...@@ -106,6 +106,8 @@ KityMinder.registerModule("image", function () { ...@@ -106,6 +106,8 @@ KityMinder.registerModule("image", function () {
url = node.getData('image'); url = node.getData('image');
var link, img, size, currentBox; var link, img, size, currentBox;
var curStyle = this.getCurrentLayoutStyle(); var curStyle = this.getCurrentLayoutStyle();
var nodeType = node.getType();
var spaceBottom = curStyle[nodeType].spaceBottom;
if (url) { if (url) {
...@@ -123,7 +125,7 @@ KityMinder.registerModule("image", function () { ...@@ -123,7 +125,7 @@ KityMinder.registerModule("image", function () {
link.setStyle('cursor', 'pointer'); link.setStyle('cursor', 'pointer');
currentBox = node.getContRc().getBoundaryBox(); currentBox = node.getContRc().getBoundaryBox();
node.getContRc().addShape(link.setTranslate(0, currentBox.y - size.height)); node.getContRc().addShape(link.setTranslate(0, currentBox.y - size.height - spaceBottom));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment