Skip to content

Commit a3707ef

Browse files
author
Hwashiang Yu
committed
MC-3477: Polish prototype and apply rearranging in preview
- Resolved issue with dragging to the last position
1 parent 867c983 commit a3707ef

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+2
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/buttons/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/ts/js/content-type/buttons/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class Preview extends PreviewCollection {
108108
items: ".pagebuilder-content-type-wrapper",
109109
cursor: "grabbing",
110110
containment: "parent",
111-
tolerance: this.data.main.attributes()["data-appearance"] === "stacked" ? "pointer" : "intersect",
111+
tolerance: this.parent.dataStore.get("appearance") === "stacked" ? "pointer" : "intersect",
112112
revert: 200,
113113
cursorAt: { left: 15, top: 15 },
114114
disabled: this.parent.children().length <= 1,

0 commit comments

Comments
 (0)