Showing
1 changed file
with
8 additions
and
8 deletions
| @@ -2295,14 +2295,14 @@ EditorUi.prototype.initCanvas = function() | @@ -2295,14 +2295,14 @@ EditorUi.prototype.initCanvas = function() | ||
| 2295 | var page = this.graph.getPageSize(); | 2295 | var page = this.graph.getPageSize(); | 
| 2296 | 2296 | ||
| 2297 | // TODO thingsKit 固定页面尺寸 超出边界后隐藏 | 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 | graph.getPreferredPageSize = function(bounds, width, height) | 2308 | graph.getPreferredPageSize = function(bounds, width, height) |