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

Windows窗口上边框无法调整大小 #954

Closed
shatyuka opened this issue May 18, 2021 · 4 comments
Closed

Windows窗口上边框无法调整大小 #954

shatyuka opened this issue May 18, 2021 · 4 comments

Comments

@shatyuka
Copy link
Contributor

错误描述
Windows窗口上边框无法调整大小

截图
screenshot

运行环境

  • 操作系统类型: Windows
  • 具体版本: Windows 10 20H2
  • Motrix 版本: v1.6.11

更多信息
看起来是title-bar-dragger的问题。是故意这样设计的吗,看相关代码是2年前的了。

@shatyuka
Copy link
Contributor Author

-webkit-app-region: drag;会过滤掉鼠标事件

添加margin: 5px 0 0 5px;留5像素边界可以解决此问题。

@agalwood
Copy link
Owner

agalwood commented May 18, 2021

由于用了frameless,就自己实现了最小化、最大化、关闭按钮,所以加了 title-bar-dragger 用 -webkit-app-region: drag; 实现了窗口可以拖拽移动~。~

你发的这个问题不是故意设计的,看起来像没意识到的副作用

@shatyuka
Copy link
Contributor Author

我也是上次更新才发现的,然后试了下v1.5发现也是这样。一直没人意识到挺离谱的

@agalwood
Copy link
Owner

agalwood commented May 18, 2021

可能没什么人在窗体顶部那里调整窗体大小吧

@shatyuka shatyuka mentioned this issue May 19, 2021
3 tasks
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