Skip to content

Commit 04c2342

Browse files
committed
Popover: should not render resize handles even if resizeEnabled is true (T1315797)
1 parent 6e98c69 commit 04c2342

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

packages/devextreme/js/__internal/ui/popover/m_popover.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ class Popover<
275275
.prependTo(this.$overlayContent());
276276
}
277277

278+
_renderResize(): void { }
279+
278280
_documentDownHandler(e): boolean {
279281
if (this._isOutsideClick(e)) {
280282
return super._documentDownHandler(e);

packages/devextreme/testing/tests/DevExpress.ui.widgets/popover.tests.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const POPOVER_WITHOUT_TITLE_CLASS = 'dx-popover-without-title';
1919
const POPOVER_TITLE_CLASS = 'dx-popup-title';
2020
const POPUP_CONTENT_CLASS = 'dx-popup-content';
2121
const OVERLAY_CONTENT_CLASS = 'dx-overlay-content';
22+
const RESIZABLE_HANDLE_CLASS = 'dx-resizable-handle';
2223

2324
const positionAtWindowCenter = function(element) {
2425
positionUtils.setup(element, {
@@ -1672,6 +1673,22 @@ QUnit.module('behavior', () => {
16721673
assert.strictEqual(this.stub.lastCall.args[0], 'W1020');
16731674
});
16741675
});
1676+
1677+
QUnit.test('Should not render resize handles even if resizeEnabled is true (T1315797)', function(assert) {
1678+
fixtures.simple.create();
1679+
const $popover = $('#what');
1680+
const $target = $('#where');
1681+
1682+
const popover = new Popover($popover, {
1683+
target: $target,
1684+
animation: null,
1685+
visible: true,
1686+
resizeEnabled: true,
1687+
});
1688+
const $handle = popover.$overlayContent().find(`.${RESIZABLE_HANDLE_CLASS}`);
1689+
1690+
assert.strictEqual($handle.length, 0, 'resize handle is not rendered');
1691+
});
16751692
});
16761693

16771694
QUnit.module('position offset', {

0 commit comments

Comments
 (0)