[GH-ISSUE #1389] [Suggest]弹出窗口本身添加滚动条 #798

Closed
opened 2026-02-27 00:01:02 +03:00 by kerem · 5 comments
Owner

Originally created by @lizhuangs on GitHub (Oct 25, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1389

Electerm version:

0.27.74

Operating system(linux, macos, or windows7/8/10?):

deepin15.11

Suggestions?

现在的窗口滚动条都是全局的,弹出来的窗口把页面撑得很高很丑。
建议窗口都做成依赖组件这个窗口这个大小就可以了。然后固定高度,如果高度超出,则滚动条在依赖组件这个窗口本身的右侧就行。
深度截图_electerm_20191025111058
像下面这2个,窗口就很高很高了,撑出去了。
深度截图_electerm_20191025111110
深度截图_electerm_20191025111126

Originally created by @lizhuangs on GitHub (Oct 25, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1389 <!--- Provide some basic info --> ## Electerm version: 0.27.74 ## Operating system(linux, macos, or windows7/8/10?): deepin15.11 ## Suggestions? 现在的窗口滚动条都是全局的,弹出来的窗口把页面撑得很高很丑。 建议窗口都做成依赖组件这个窗口这个大小就可以了。然后固定高度,如果高度超出,则滚动条在依赖组件这个窗口本身的右侧就行。 ![深度截图_electerm_20191025111058](https://user-images.githubusercontent.com/7904121/67540625-9efa7280-f718-11e9-9945-c760cf337d7b.png) 像下面这2个,窗口就很高很高了,撑出去了。 ![深度截图_electerm_20191025111110](https://user-images.githubusercontent.com/7904121/67540641-a588ea00-f718-11e9-8ae1-55e837650fed.png) ![深度截图_electerm_20191025111126](https://user-images.githubusercontent.com/7904121/67540644-a883da80-f718-11e9-8f8c-b244d103700b.png)
kerem 2026-02-27 00:01:02 +03:00
Author
Owner

@zxdong262 commented on GitHub (Oct 25, 2019):

这是antd modal组件的默认行为,如果你能说服antd改变,我也会采用。

<!-- gh-comment-id:546207023 --> @zxdong262 commented on GitHub (Oct 25, 2019): 这是antd modal组件的默认行为,如果你能说服antd改变,我也会采用。
Author
Owner

@lizhuangs commented on GitHub (Oct 25, 2019):

antd作者告诉我,这样设置就可以,并且我测试过,这个是可行的:
bodyStyle={
maxHeight: 400,
overflow: 'auto'
}

<!-- gh-comment-id:546269167 --> @lizhuangs commented on GitHub (Oct 25, 2019): antd作者告诉我,这样设置就可以,并且我测试过,这个是可行的: bodyStyle={ maxHeight: 400, overflow: 'auto' }
Author
Owner

@lizhuangs commented on GitHub (Oct 25, 2019):

@zxdong262 how to reopen this issue?

<!-- gh-comment-id:546269807 --> @lizhuangs commented on GitHub (Oct 25, 2019): @zxdong262 how to reopen this issue?
Author
Owner

@lizhuangs commented on GitHub (Oct 28, 2019):

@zxdong262 求支持呀,我搜索代码有8个地方出现这个modal。实际过程中maxHeight还得动态获取屏幕分辨率做减法算出来。

<!-- gh-comment-id:546766053 --> @lizhuangs commented on GitHub (Oct 28, 2019): @zxdong262 求支持呀,我搜索代码有8个地方出现这个modal。实际过程中maxHeight还得动态获取屏幕分辨率做减法算出来。
Author
Owner

@zxdong262 commented on GitHub (Apr 1, 2021):

现在不再使用modal了

<!-- gh-comment-id:811653728 --> @zxdong262 commented on GitHub (Apr 1, 2021): 现在不再使用modal了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#798
No description provided.