More fixes for canvas product type

This commit is contained in:
Rikard Bartholf
2017-05-16 12:20:52 +02:00
parent 578c44ebfd
commit e8d6e5de34
3 changed files with 29 additions and 14 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ function Viewport(canvas) {
var _borderWidth = 2;
var _data = null;
var _rect;
var self = this;
/**
* Applies viewport to page
@@ -42,7 +43,7 @@ function Viewport(canvas) {
}
canvas.getDragbars().apply();
self.setFrame();
// Apertures sometimes overlaps the viewports bounding rect.
// Solve this by bringing it to the front after apertures are applied.
_rect.bringToFront();
@@ -136,7 +137,7 @@ function Viewport(canvas) {
*/
this.setFrame = function (frameType) {
this.getFrameHandler().setFrames(frameType);
}
};
this.getData = function () {
return _data;