Commit bcb30470 authored by Akikonata's avatar Akikonata

fixed image position

parent 05b8b573
...@@ -190,7 +190,8 @@ KityMinder.registerModule("LayoutDefault", function () { ...@@ -190,7 +190,8 @@ KityMinder.registerModule("LayoutDefault", function () {
default: default:
break; break;
} }
contRc.setTranslate(nodeStyle.padding[3], nodeStyle.padding[0] + _contRCHeight / 2); var rBox = contRc.getRenderBox();
contRc.setTranslate(nodeStyle.padding[3], nodeStyle.padding[0] - rBox.top);
}; };
//计算节点在垂直方向的位置 //计算节点在垂直方向的位置
var updateLayoutVertical = function (node, parent, action) { var updateLayoutVertical = function (node, parent, action) {
......
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