Commit a0e69741 authored by campaign's avatar campaign

Merge remote-tracking branch 'origin/dev' into dev

parents 173e4636 569b6c2b
...@@ -245,16 +245,17 @@ Minder.Receiver = kity.createClass( 'Receiver', { ...@@ -245,16 +245,17 @@ Minder.Receiver = kity.createClass( 'Receiver', {
if(!this.selection.isShow()){ if(!this.selection.isShow()){
var paperContainer = this.km.getPaper(); var paperContainer = this.km.getPaper();
var width = paperContainer.getWidth(); var width = paperContainer.node.parentNode.clientWidth;
var height = paperContainer.getHeight(); var height = paperContainer.node.parentNode.clientHeight;
if(width < this.container.offsetWidth + this.container.offsetLeft){ if(width < this.container.offsetWidth + this.container.offsetLeft){
this.km.getRenderContainer().translate(width/-3, 0); this.km.getRenderContainer().translate(width/-3, 0);
this.setContainerStyle(); //this.setContainerStyle();
console.log(width, this.container.offsetWidth + this.container.offsetLeft);
}else if (height < this.container.offsetTop + this.container.offsetHeight){ }else if (height < this.container.offsetTop + this.container.offsetHeight){
this.km.getRenderContainer().translate(0, height/-3); this.km.getRenderContainer().translate(0, height/-3);
this.setContainerStyle() //this.setContainerStyle()
} }
} }
......
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