瀏覽代碼

HUE-7229 [editor] Expanding a result row a second time does not reset the scroll of the modal to the top

Enrico Berti 8 年之前
父節點
當前提交
830fa6c066
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/templates/common_header_footer_components.mako

+ 1 - 0
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -544,6 +544,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
 
     $('#rowDetailsModal').on('shown', function () {
       $('.modal-backdrop').css('z-index', '1070');
+      $('#rowDetailsModal .modal-body').scrollTop(0);
     });
 
     if ($.fn.editableform) {