File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
testing/tests/DevExpress.ui.widgets Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const POPOVER_WITHOUT_TITLE_CLASS = 'dx-popover-without-title';
1919const POPOVER_TITLE_CLASS = 'dx-popup-title' ;
2020const POPUP_CONTENT_CLASS = 'dx-popup-content' ;
2121const OVERLAY_CONTENT_CLASS = 'dx-overlay-content' ;
22+ const RESIZABLE_HANDLE_CLASS = 'dx-resizable-handle' ;
2223
2324const 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
16771694QUnit . module ( 'position offset' , {
You can’t perform that action at this time.
0 commit comments