Skip to content

Commit 01343ec

Browse files
author
marker dao ®
committed
fix(lookup)
1 parent 86273e7 commit 01343ec

File tree

1 file changed

+5
-5
lines changed
  • packages/devextreme/testing/tests/DevExpress.ui.widgets.editors

1 file changed

+5
-5
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/lookup.tests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,7 +3912,7 @@ QUnit.module('default options', {
39123912

39133913
$(lookup.field()).trigger('dxclick');
39143914

3915-
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -31 - materialLookupPadding, 1, 'offset of the lookup after scrolling and cut-off item selecting');
3915+
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -1 - materialLookupPadding, 1, 'offset of the lookup after scrolling and cut-off item selecting');
39163916
assert.roughEqual($('.dx-list-item').eq(1).position().top, 38, 2, 'position of the selected item after scrolling and cut-off item selecting');
39173917

39183918
lookup.close();
@@ -3921,7 +3921,7 @@ QUnit.module('default options', {
39213921

39223922
$(lookup.field()).trigger('dxclick');
39233923

3924-
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -31 - materialLookupPadding, 1, 'offset of the lookup if last item is selected');
3924+
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -1 - materialLookupPadding, 1, 'offset of the lookup if last item is selected');
39253925

39263926
lookup.close();
39273927

@@ -3971,7 +3971,7 @@ QUnit.module('default options', {
39713971

39723972
let $popup = $('.dx-popup-wrapper');
39733973

3974-
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -31 - materialLookupPadding, 1, 'popup position if second item is selected and there is not top place');
3974+
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -1 - materialLookupPadding, 1, 'popup position if second item is selected and there is not top place');
39753975

39763976
lookup.close();
39773977

@@ -4025,7 +4025,7 @@ QUnit.module('default options', {
40254025

40264026
$popup = $('.dx-popup-wrapper');
40274027

4028-
assert.roughEqual($popup.find('.dx-overlay-content').position().top, -19 - $('.dx-list-item').height() - materialLookupPadding * 2, 3, 'popup position if there is not place for two items');
4028+
assert.roughEqual($popup.find('.dx-overlay-content').position().top, 9 - $('.dx-list-item').height() - materialLookupPadding * 2, 3, 'popup position if there is not place for two items');
40294029

40304030
lookup.close();
40314031

@@ -4134,7 +4134,7 @@ QUnit.module('default options', {
41344134

41354135
const $popover = $('.dx-popover-wrapper');
41364136

4137-
assert.roughEqual($popover.find('.dx-overlay-content').eq(0).position().top, $(lookup._inputWrapper()).outerHeight() + 8 + 65, 2, 'popover position of lookup field with body padding 8px');
4137+
assert.roughEqual($popover.find('.dx-overlay-content').eq(0).position().top, $(lookup._inputWrapper()).outerHeight() + 8 + 12, 2, 'popover position of lookup field with body padding 8px');
41384138

41394139
lookup.close();
41404140

0 commit comments

Comments
 (0)