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

Bug: Page组件设置自动计算高度计算错误 #4576

Open
5 tasks done
lingyunzhizun opened this issue Oct 6, 2024 · 3 comments
Open
5 tasks done

Bug: Page组件设置自动计算高度计算错误 #4576

lingyunzhizun opened this issue Oct 6, 2024 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@lingyunzhizun
Copy link

Version

Vben Admin V5

Describe the bug?

Page组件设置自动计算高度计算错误
1、Footer设置为固定位置,计算高度多了Footer的高度
2、Footer设置为显示但是非固定位置时,页面修改热更新后,高度计算错误,多个Footer的高度

Reproduction

<Page auto-content-height>
    测试
</Page>

System Info

Chrome最新版本

Relevant log output

No response

Validations

@lingyunzhizun
Copy link
Author

补充:整个页面全屏再恢复,这个计算也是错误的

@anncwb anncwb added bug Something isn't working enhancement New feature or request labels Oct 7, 2024
@cbombonera
Copy link

这个auto-content-height 实际就是把context 上面的那个高度拿来用了,但是那是可视化高度,是某种场景不包含底层栏的
比如先进入有滚动条页面 在进入auto-content-height 页面,然后body滚动条就出现了,高了一个底层栏的高度
并且也没有办法自适应,我重置窗口试了,并且表格aoto-reszie也试了,这么弄可能还得计算
不知道作者有什么好的方法吗

我暂时没用auto-content-height,直接加了class absolute 宽度和高度百分百 目前看是可行的

@linyouhang
Copy link

期望得到的结果应该是怎么样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants