Skip to content

Commit c4bc2df

Browse files
committed
MC-1172: Persist & validate grid size entry
- Update resize utils class to reflect file name
1 parent 8ea3abc commit c4bc2df

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/column-group/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/column/resize.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/column-group/preview.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {default as ColumnGroupPreview} from "../column-group/preview";
2121
import BindResizeHandleEventParamsInterface from "../column/bind-resize-handle-event-params";
2222
import InitElementEventParamsInterface from "../column/init-element-event-params";
2323
import ColumnPreview from "../column/preview";
24-
import ResizeUtils, {
24+
import Resize, {
2525
comparator, determineMaxGhostWidth, getAdjacentColumn, getColumnIndexInGroup,
2626
getRoundedColumnWidth, updateColumnWidth,
2727
} from "../column/resize";
@@ -73,7 +73,7 @@ export default class Preview extends PreviewCollection {
7373
private dropPosition: DropPosition;
7474
private movePosition: DropPosition;
7575
private groupPositionCache: GroupPositionCache;
76-
private resizeUtils: ResizeUtils;
76+
private resizeUtils: Resize;
7777
private gridSizeHistory: Map<number, number[]> = new Map();
7878

7979
/**
@@ -88,7 +88,7 @@ export default class Preview extends PreviewCollection {
8888
observableUpdater: ObservableUpdater,
8989
) {
9090
super(parent, config, observableUpdater);
91-
this.resizeUtils = new ResizeUtils(this.parent);
91+
this.resizeUtils = new Resize(this.parent);
9292

9393
// Keep track of the grid size in an observable
9494
this.parent.dataStore.subscribe((state: DataObject) => {
@@ -131,9 +131,9 @@ export default class Preview extends PreviewCollection {
131131
/**
132132
* Retrieve the resize utils
133133
*
134-
* @returns {ResizeUtils}
134+
* @returns {Resize}
135135
*/
136-
public getResizeUtils(): ResizeUtils {
136+
public getResizeUtils(): Resize {
137137
return this.resizeUtils;
138138
}
139139

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/column/resize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {outwardSearch} from "../../utils/array";
88
import {ColumnWidth, GroupPositionCache, MaxGhostWidth, ResizeHistory} from "../column-group/preview";
99
import ColumnPreview from "./preview";
1010

11-
export default class ResizeUtils {
11+
export default class Resize {
1212
private columnGroup: ContentTypeCollectionInterface;
1313

1414
constructor(columnGroup: ContentTypeCollectionInterface) {

0 commit comments

Comments
 (0)