Skip to content

Commit 50ae6de

Browse files
author
Lukasz Borowiec
committed
#613: Sliders do not render correctly after toggle a screen mode several times - added slider resize after open full screen mode
1 parent 7ef5f37 commit 50ae6de

File tree

2 files changed

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

2 files changed

+9
-6
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,15 @@ export default class Preview extends PreviewCollection {
122122
events.trigger("stage:interactionStop");
123123
}
124124
});
125+
events.on(
126+
`stage:${this.contentType.stageId}:fullScreenModeChangeAfter`,
127+
this.onColumnResize.bind(this, [true])
128+
);
125129
},
126130
() => $(element).find(".pagebuilder-slide").length === expectedChildren,
127131
);
128132
});
129133
}
130-
131134
/**
132135
* Return an array of options
133136
*

0 commit comments

Comments
 (0)