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

x6的Grapg的autoResize问题 #4097

Open
alittlesister opened this issue Dec 14, 2023 · 3 comments
Open

x6的Grapg的autoResize问题 #4097

alittlesister opened this issue Dec 14, 2023 · 3 comments

Comments

@alittlesister
Copy link

Describe the bug

autoResize的属性设置成true之后,画布的容器会一直不停的变高

Your Example Website or App

内部项目,暂无链接可提供

Steps to Reproduce the Bug or Issue

1、使用flex左右布局构建右边部分是容器的盒子
2、使用new Graph时传入autoResize:true

Expected behavior

autoResize属性非常好用,但是有bug导致只能手动去调整画面

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 14, 2023

👋 @alittlesister

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@oyal
Copy link

oyal commented Jan 10, 2024

应该是你的 css 样式有问题,画布容器如果使用了 flex: 1 也要使用 overflow: auto。我之前遇到过类似的问题。这是一个简单的示例:

https://codesandbox.io/embed/c2xgxy

@lilinhao1054
Copy link

我遇到过类似的问题,不过是画布的某个父级容器使用了flex:1,加上overflow: auto后起作用了

应该是你的 css 样式有问题,画布容器如果使用了 flex: 1 也要使用 overflow: auto。我之前遇到过类似的问题。这是一个简单的示例:

https://codesandbox.io/embed/c2xgxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants