Dailog location issues when switching tabs in easyUI

defines a button to open a dailog through $.extend ($.fn.datagrid.defaults.editors).
and define the initial position top=$ (document). ScrollTop () + 6; then switch to another tab and then switch back, $(document). ScrollTop () should be back to the top position, at this time the position of dialog has not changed, it is still in the position at the time of creation, so it cannot be displayed properly, and the drop-down box of this tab is not valid, only the drop-down box in dialog is valid. Has anyone ever encountered this problem? ask for a solution.

Mar.06,2021
Menu