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

CodeEditor 高度自适应时垂直滚动条总是可见 #655

Closed
tky753 opened this issue May 26, 2021 · 4 comments
Closed

CodeEditor 高度自适应时垂直滚动条总是可见 #655

tky753 opened this issue May 26, 2021 · 4 comments

Comments

@tky753
Copy link

tky753 commented May 26, 2021

Problem

image
image

<a-card>
  <template #title>
    <a-button>{{ t('common.saveText') }}</a-button>
  </template>
  <CodeEditor v-model:value="fileContentRef" mode="javascript" />
</a-card>

Expected behaviour

能否自动计算高度,使垂直滚动条不显示?

@mynetfan
Copy link
Collaborator

https://vvbin.cn/next/#/comp/editor/json
演示页面就是如此

@tky753
Copy link
Author

tky753 commented May 26, 2021

@mynetfan 所以这是不是可以改进啊。还有演示界面如此,你是不是用手机看的

@mynetfan
Copy link
Collaborator

@tky753 电脑啊。演示界面就是高度足够就不会显示滚动条,高度不够时才显示。

@tky753
Copy link
Author

tky753 commented May 26, 2021

@mynetfan 演示界面 PageWrapper 设置了 contentFullHeight,默认就给你拉满了,所以感受不出来。

@anncwb anncwb closed this as completed in 5662804 May 27, 2021
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

2 participants