@leapfrog/interactive-canvas 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -485,7 +485,8 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
485
485
|
if (oc(canvas.getDimensionsRestrictions()).fixed(false))
|
|
486
486
|
return;
|
|
487
487
|
var dimensions = canvas.getDimensions();
|
|
488
|
-
var
|
|
488
|
+
var minHeight = oc(canvas.getDimensionsRestrictions()).height.min(MIN_MAGNITUDE);
|
|
489
|
+
var targetDimensions = canvas.getDimensions().withSize(dimensions.width, minHeight);
|
|
489
490
|
while (targetDimensions.heightPx < requiredHeight) {
|
|
490
491
|
targetDimensions = targetDimensions.withSize(dimensions.width, targetDimensions.height + 1);
|
|
491
492
|
}
|
|
@@ -487,7 +487,8 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
487
487
|
if (tsOptchain.oc(canvas.getDimensionsRestrictions()).fixed(false))
|
|
488
488
|
return;
|
|
489
489
|
var dimensions = canvas.getDimensions();
|
|
490
|
-
var
|
|
490
|
+
var minHeight = tsOptchain.oc(canvas.getDimensionsRestrictions()).height.min(MIN_MAGNITUDE);
|
|
491
|
+
var targetDimensions = canvas.getDimensions().withSize(dimensions.width, minHeight);
|
|
491
492
|
while (targetDimensions.heightPx < requiredHeight) {
|
|
492
493
|
targetDimensions = targetDimensions.withSize(dimensions.width, targetDimensions.height + 1);
|
|
493
494
|
}
|