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

Macos, frameless window, -webkit-app-region: drag on fixed height/width not working after resizing the window #electron7.1 #21034

Closed
KASOGIT opened this issue Nov 7, 2019 · 8 comments

Comments

@KASOGIT
Copy link

KASOGIT commented Nov 7, 2019

Issue Details

  • Electron Version: v7.1.0
  • Operating System: macOS 10.15.1
  • Last Known Working Electron version: v5.x.x

Expected Behavior

After manually resizing my window or with electron api func like maximize or setBounds i would like the -webkit-app-region: drag property to keep on working on a title bar with fixed width or/and height.

Actual Behavior

When opening the app drag works perfectly but once manually resize the window or call size changing electron api func the drag stop working directly.

To Reproduce

https://github.com/bonjourio/electron-test-repository

npm install && npm run start

On the exemple the header has a fixed height of 40px and width 100% when resizing on the width drag works fine after it but after resizing on the height not. You can edit the style in index.html to test different behavior, like: height: 100%; width: 40px; = not working after resizing on width.

Best regards.

@g1eny0ung
Copy link

@KASOGIT Same behavior to me.

@MaximeMarchand
Copy link

This is a problem and we will have to postpone our upgrade.

@m4thieulavoie
Copy link

We have the same issue, but when resizing on height. Resizing on width and corners afterwards fixes it.

@xuzhaobin
Copy link

I have the same issue, when leave-full-screen

qinyang912 pushed a commit to rishiqing/rishiqing-electron that referenced this issue Dec 16, 2019
* chore: 升级部分包

* fix: 为解决electron的无边框早macos 10.15.1的拖拽BUG,只用有边框

BUG:electron/electron#21034

* fix: 使用https

* fix: 解决同源策略,可以修复右键功能

* fix: 解决mac qq选中整个content截图白屏的问题,实际上这是qq的问题,识图的截图方式依然存在白屏问题

* chore: 升级版本

* chore: 还原功能,记录问题

调试发现,qq截图白屏是new tray执行的原因,只要tray顺利执行,那么qq弹框截屏就白屏

* feat: 增加回到日事清功能

* fix: 升级@sentry/electron解决提示getName被废弃警告的问题
@Zei33
Copy link

Zei33 commented Dec 25, 2019

This seems to be an issue with changing the window height.

When the height is expanded or reduced, the window is no longer draggable.

Expanding the height AND width of the window will restore the usual functionality. This can be done by expanding one edge at a time or both at the same time.

One other thing to note is that the issue is somewhat inconsistent. Most of the time it occurs, but sometimes it doesn't.

For the record, I'm using electron 7.1.7 on OSX.

#20926 (comment)

@MaximeMarchand
Copy link

Any updates on this one?

@trungutt
Copy link

It seems to be fixed by #21723, so normally you shouldn't have this problem anymore after Electron 7.1.9

@electron-triage
Copy link

The Electron version reported on this issue is no longer supported. See our supported versions documentation.

If this is still reproducible on a supported version, please open a new issue with any other new information that a maintainer should know.

Thank you for taking the time to report this issue and helping to make Electron better! Your help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
7.2.x
Unsorted Issues
Development

No branches or pull requests

9 participants