Commit 0b73e858478f2c7ebf9219a0a6e60516a15ca6a1

Authored by ww
1 parent aa68f537

fix: 固定页面尺寸背景, 超出后不衍生背景

... ... @@ -2295,14 +2295,14 @@ EditorUi.prototype.initCanvas = function()
2295 2295 var page = this.graph.getPageSize();
2296 2296
2297 2297 // TODO thingsKit 固定页面尺寸 超出边界后隐藏
2298   - // return new mxRectangle(this.scale * (this.translate.x),
2299   - // this.scale * (this.translate.y),
2300   - // this.scale * page.width,
2301   - // this.scale * page.height)
2302   - return new mxRectangle(this.scale * (this.translate.x + layout.x * page.width),
2303   - this.scale * (this.translate.y + layout.y * page.height),
2304   - this.scale * layout.width * page.width,
2305   - this.scale * layout.height * page.height);
  2298 + return new mxRectangle(this.scale * (this.translate.x),
  2299 + this.scale * (this.translate.y),
  2300 + this.scale * page.width,
  2301 + this.scale * page.height)
  2302 + // return new mxRectangle(this.scale * (this.translate.x + layout.x * page.width),
  2303 + // this.scale * (this.translate.y + layout.y * page.height),
  2304 + // this.scale * layout.width * page.width,
  2305 + // this.scale * layout.height * page.height);
2306 2306 };
2307 2307
2308 2308 graph.getPreferredPageSize = function(bounds, width, height)
... ...