Quick fix for multiple viewports being assigned the same viewportIndex

This commit is contained in:
Emanuel Oliveira committed 2016-12-22 14:26:53 -02:00
1 parent 2d06661eff
commit a48a82adcb
1 file changed
+1 -1
@@ -46,7 +46,7 @@ LayoutManager = class LayoutManager {
if (viewportsAmount > oldViewportData.length && oldViewportData.length && isSequenced) {
// Keep the displayed display sets
self.viewportData = oldViewportData;
currentViewportIndex = oldViewportData.length - 1;
currentViewportIndex = oldViewportData.length;
} else if (viewportsAmount <= oldViewportData.length) {
// Reduce the original displayed display sets
self.viewportData = oldViewportData.slice(0, viewportsAmount);