Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[comp:modal] 对body进行缩放之后,modal弹窗的动画弹出的位置不正确 #1326

Open
1 task done
clfeng opened this issue Dec 2, 2022 · 3 comments
Open
1 task done

Comments

@clfeng
Copy link
Contributor

clfeng commented Dec 2, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/clfeng/idux-scale-bug-demo

Steps to reproduce

  1. 拉取项目
    clone https://github.com/clfeng/idux-scale-bug-demo 项目

  2. 安装依赖和运行项目
    yarn install
    yarn dev;

  3. 提供了两个页面

http://localhost:5173/#/origin 页面为没有进行body缩放的表现行为

http://localhost:5173/#/scale 页面为进行了缩放后的页面的表现行为

What is expected?

body 进行缩放之后 弹窗弹出的位置能正确

What is actually happening?

body 进行缩放之后 弹窗弹出的位置不正确

Environment Info

Browsers:
    Chrome: 107.0.5304.121
    Firefox: 77.0.1
    Safari: 14.1.2
  npmPackages:
    @idux/cdk: ^1.2.1 => 1.2.1 
    @idux/components: ^1.2.1 => 1.2.1 
    @idux/pro: ^1.2.1 => 1.2.1 
    vue: ^3.2.41 => 3.2.45 

https://github.com/clfeng/idux-scale-bug-demo
可参考 https://github.com/clfeng/idux-scale-bug-demo 项目READEM.md 的相关截图说明;

@idux-bot
Copy link

idux-bot bot commented Dec 2, 2022

Translation of this issue:

[Comp: MODAL] After the body zoomed, the position of the animation pop -up of the MODAL pop -up window is incorrect

REPRODUCTION LINK

[https://github.com/clfeng/idux-scale-bug-demo]

STEPS To Reproduce

  1. Pull the project
    clone https://github.com/Clfeng/idux-sCale-bug-Demo project

  2. Installation dependencies and operating projects
    Yarn Install
    yarn dev;

  3. Provided two pages

http: // localhost: 5173/#/Origin page is a performance that does not have BODY scaling

http: // localhost: 5173/#/scale page for the performance of the zoomed page

What is exfected?

The pop -up position can be correct after the body is scaled

What is actually happy?

The pop -up window pop -up position is incorrect after the body is scaled

ENVIRONMENT Info

Browsers:
    Chrome: 107.0.5304.121
    Firefox: 77.0.1
    Safari: 14.1.2
  npmPackages:
    @idux/cdk: ^1.2.1 => 1.2.1 
    @idux/components: ^1.2.1 => 1.2.1 
    @idux/pro: ^1.2.1 => 1.2.1 
    vue: ^3.2.41 => 3.2.45 

https://github.com/Clfeng/idux-sCale-bug-Demo
Can refer to https://github.com/Clfeng/idux-sCale-bug-Demo project Readem.md related screenshot description;

@sallerli1
Copy link
Contributor

popover弹出位置的问题目前可以通过设置overlay-container到app-wrapper解决,modal的transform-origin计算的问题还需要再重新设计一下逻辑

@danranVm
Copy link
Member

danranVm commented Dec 23, 2022

modal 暂时通过禁用动画来规避一下吧。

@danranVm danranVm removed their assignment Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants