Skip to content

Commit bc40eb8

Browse files
authored
Merge pull request #7991 from BloomBooks/BL-16448-bg-image-param-order
Fix BL-16448 alignControlFrameWithActiveElement is not a function
2 parents 0f436e4 + 1634ad1 commit bc40eb8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/BloomBrowserUI/bookEdit/js/canvasElementManager/CanvasElementBackgroundImageManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ export function adjustBackgroundImageSize(
293293
bloomCanvas: HTMLElement,
294294
bgCanvasElement: HTMLElement,
295295
useSizeOfNewImage: boolean,
296-
cropInfo?: IImageCropInfo,
297296
getActiveElement: () => HTMLElement | undefined,
298297
alignControlFrameWithActiveElement: () => void,
298+
cropInfo?: IImageCropInfo,
299299
): Promise<void> {
300300
// adjustBackgroundImageSizeToFit may wait for the image to load and make modifications after,
301301
// and we want to make sure those modifications are included in any save that occurs in the meantime.

src/BloomBrowserUI/bookEdit/js/canvasElementManager/CanvasElementManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3122,9 +3122,9 @@ export class CanvasElementManager {
31223122
bloomCanvas,
31233123
bgCanvasElement,
31243124
useSizeOfNewImage,
3125-
cropInfo,
31263125
() => this.activeElement,
31273126
this.alignControlFrameWithActiveElement,
3127+
cropInfo,
31283128
);
31293129
}
31303130

0 commit comments

Comments
 (0)