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
I am implementing a function similar to the modal component. When the mask layer or modal component appears, the body is prohibited from scrolling. Since I need to deal with the problem of zooming in and out of the mobile terminal, I use position:fix to control it, but it is required when the modal is destroyed. The page remains in its original position, so the window.scrollTo() method is used. The problem is that after using this method, the page will scroll from the top to the original position, which is not a good experience.
What does the proposed API look like?
I want the same effect as the modal component in the ng-zorro-antd component library. How can I achieve it?
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
I am implementing a function similar to the modal component. When the mask layer or modal component appears, the body is prohibited from scrolling. Since I need to deal with the problem of zooming in and out of the mobile terminal, I use
position:fix
to control it, but it is required when the modal is destroyed. The page remains in its original position, so thewindow.scrollTo()
method is used. The problem is that after using this method, the page will scroll from the top to the original position, which is not a good experience.What does the proposed API look like?
I want the same effect as the modal component in the ng-zorro-antd component library. How can I achieve it?
The text was updated successfully, but these errors were encountered: