@leapfrog/interactive-canvas 1.14.3 → 1.14.4
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.
|
@@ -410,6 +410,7 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
410
410
|
var footerObjects = objects[0];
|
|
411
411
|
var bodyObjects = objects[1];
|
|
412
412
|
var bodyWidth = canvasDimensions.widthPx - canvasMargin.right - canvasMargin.left;
|
|
413
|
+
canvas.redraw();
|
|
413
414
|
//Make one pass and set the widths of all elements. This will force objects with dynamic heights (like text) to take on their necessary height before trying to lay them out.
|
|
414
415
|
this.applyWidths(allObjects, bodyWidth);
|
|
415
416
|
var bodyRows = this.getRows(bodyObjects);
|
|
@@ -412,6 +412,7 @@ var StackObjectsLayoutFunction = /** @class */ (function () {
|
|
|
412
412
|
var footerObjects = objects[0];
|
|
413
413
|
var bodyObjects = objects[1];
|
|
414
414
|
var bodyWidth = canvasDimensions.widthPx - canvasMargin.right - canvasMargin.left;
|
|
415
|
+
canvas.redraw();
|
|
415
416
|
//Make one pass and set the widths of all elements. This will force objects with dynamic heights (like text) to take on their necessary height before trying to lay them out.
|
|
416
417
|
this.applyWidths(allObjects, bodyWidth);
|
|
417
418
|
var bodyRows = this.getRows(bodyObjects);
|