nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Window animations do not show in Windows

Open ssight opened this issue 4 years ago • 7 comments

NWJS Version : 0.43.6 Operating System : Windows 10

Expected behaviour

When a frameless window is closed, minimised or maximised via code, the window should show animations as if it were not frameless (the default Windows window animations). This used to happen before nw2, and works on nw2 with the "chromium-args": "--disable-features=nw2" property set in the package.json file.

Actual behaviour

The window goes straight into its new position without any animation.

How to reproduce

  • Be on Windows
  • Have "window":{"frame":true} set in package.json
  • Try closing the window with nw.Window.get().close(true). The window will just disappear.

ssight avatar Jan 29 '20 21:01 ssight

i can confirm this is indeed an case.

Sombian avatar Feb 25 '20 21:02 Sombian

Are there any updates about this issue?

JellyBrick avatar May 26 '20 09:05 JellyBrick

@rogerwang can you please look into this issue?

Sombian avatar Jul 07 '20 04:07 Sombian

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 09:01 stale[bot]

Are there any updates about this issue?

Elius94 avatar Jun 28 '22 13:06 Elius94

I am currently facing a similar problem. In my case, it happens in case of frameless windows. ("window":{"frame":false}) and when I call "nw.Window.get().close(true)" it ends without animation. In normal window mode there is no problem. Only in frameless window does the problem occur. The version I am using is nw v0.73.

ryusei-48 avatar Feb 24 '23 22:02 ryusei-48

I'm having the same issue with nw.Window.get().minimize(), nw.Window.get().maximize() and nw.Window.get().restore(). Also, when I move my mouse to any edge of the window when it's maximised, the resize cursor appears which prevents me from moving the window when my cursor is at the top of the screen. This doesn't happen when the window isn't frameless.

UtterDonkey avatar Jul 05 '23 19:07 UtterDonkey