Prevent unnecessary layoutManager update when toggling enlargement
This commit is contained in:
parent
131fe7ff99
commit
2dbeea31a0
@ -213,7 +213,11 @@ LayoutManager = class LayoutManager {
|
|||||||
if (this.isZoomed) {
|
if (this.isZoomed) {
|
||||||
this.resetPreviousLayout();
|
this.resetPreviousLayout();
|
||||||
} else {
|
} else {
|
||||||
this.enlargeViewport(viewportIndex);
|
// Don't enlarge the viewport if we only have one Viewport
|
||||||
|
// to begin with
|
||||||
|
if (this.getNumberOfViewports() > 1) {
|
||||||
|
this.enlargeViewport(viewportIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user