Commit 7933e106 authored by campaign's avatar campaign

修复留白出现的问题

parent a04ba433
......@@ -227,8 +227,8 @@ Minder.Receiver = kity.createClass( 'Receiver', {
}
return this;
},
getBaseOffset: function ( ) {
var rb = this.textShape.getRenderBox( this.km.getRenderContainer() );
getBaseOffset: function ( refer ) {
var rb = this.textShape.getRenderBox( refer || this.km.getRenderContainer() );
// if(!this.pr) {
// this.km.getRenderContainer().addShape(this.pr = new kity.Rect().stroke('green'));
// }
......@@ -240,7 +240,7 @@ Minder.Receiver = kity.createClass( 'Receiver', {
return this;
},
setContainerStyle: function () {
var textShapeBox = this.getBaseOffset();
var textShapeBox = this.getBaseOffset('screen');
this.container.style.cssText = ";left:" + textShapeBox.x + 'px;top:' + ( textShapeBox.y - 5 ) + 'px;width:' + textShapeBox.width + 'px;height:' + textShapeBox.height + 'px;';
return this;
......
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