You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QUnit.test('maxHeight should be distance between the popup top bound and the element top bound if the popup has been rendered at the top already and the window was scrolled (T874949, T942217)',function(assert){
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-($popup.find('.dx-overlay-content').height()-$('.dx-list-item').height())/2,2,'offset of the lookup if fourth item is selected');
3869
+
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-($popup.find('.dx-overlay-content').height()-$('.dx-list-item').height())/2,4,'offset of the lookup if fourth item is selected');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-materialLookupPadding,1,'offset of the lookup after scrolling and cut-off item selecting');
3916
-
assert.roughEqual($('.dx-list-item').eq(1).position().top,getList().scrollTop(),2,'position of the selected item 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');
3916
+
assert.roughEqual($('.dx-list-item').eq(1).position().top,38,2,'position of the selected item after scrolling and cut-off item selecting');
3917
3917
3918
3918
lookup.close();
3919
3919
3920
3920
lookup.option('value','purple');
3921
3921
3922
3922
$(lookup.field()).trigger('dxclick');
3923
3923
3924
-
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-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');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-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');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-$('.dx-list-item').height(),2,'popup position if second item is selected and there is top place');
3984
+
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-7-$('.dx-list-item').height(),2,'popup position if second item is selected and there is top place');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-$('.dx-list-item').height()*2-materialLookupPadding*2,3,'fourth item is centered');
4006
+
assert.roughEqual($popup.find('.dx-overlay-content').position().top,5-$('.dx-list-item').height()*2-materialLookupPadding*2,3,'fourth item is centered');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-$('.dx-list-item').height()*4-materialLookupPadding*2,2,'popup position if last item is selected and there is place');
4016
+
assert.roughEqual($popup.find('.dx-overlay-content').position().top,3-$('.dx-list-item').height()*4-materialLookupPadding*2,2,'popup position if last item is selected and there is place');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-$('.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');
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-2.5-materialLookupPadding,1,'popup position if last item is selected and there is not place');
4038
+
assert.roughEqual($popup.find('.dx-overlay-content').position().top,-1-materialLookupPadding,1,'popup position if last item is selected and there is not place');
assert.roughEqual($popover.find('.dx-overlay-content').eq(0).position().top,$(lookup._inputWrapper()).outerHeight()+8+10,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');
0 commit comments