Nw.js: Maximizing an always on top transparent frameless window causes the bottom to overflow under the taskbar

Created on 13 Oct 2017  Â·  9Comments  Â·  Source: nwjs/nw.js

NWJS Version : SDK 26.0 beta 1
Operating System : Win7 x64

Expected behavior

The bottom of the window should not go under the taskbar when maximized.

Actual behavior

The bottom of the window goes under the taskbar when maximized.

How to reproduce

Basic app template with window frame set to false, transparent set to true and always_on_top set to true
Maximize app and check the bottom of the window under the windows taskbar

Resulting behavior illustrated:

ss

Expected behavior:

ss

P2 bug triaged

Most helpful comment

@Yonezpt I've made a fix, here https://github.com/nwjs/chromium.src/pull/97
@rogerwang please accept my pull request for nw25, please also patch nw26

All 9 comments

Please try this version:
https://dl.nwjs.io/live-build/10-06-2017/nw26-4fae369-edf758a-6de1a29-61e38b8

On Oct 13, 2017 8:40 AM, "Particle" notifications@github.com wrote:

NWJS Version : SDK 26.0 beta 1
Operating System : Win7 x64
Expected behavior

The bottom of the window should not go under the taskbar when maximized.
Actual behavior

The bottom of the window goes under the taskbar when maximized.
How to reproduce

Basic app template with window frame set to false and transparent set to
true
Maximize app and check the bottom of the window under the windows taskbar

Resulting behavior illustrated:

[image: ss]
https://user-images.githubusercontent.com/8498057/31525295-cbedd2f4-afae-11e7-8474-fabb49ad3a98.png

Expected behavior:

[image: ss]
https://user-images.githubusercontent.com/8498057/31525321-fd8a64f8-afae-11e7-8add-f6cc3c17f06c.png

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nwjs/nw.js/issues/6204, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKGGaiSMMWjtKnnoYDHx6ujeVPnaCiLks5srrFygaJpZM4P30gA
.

@rogerwang The problem is still there and I just noticed that I failed to include another detail so that this issue can be reproduced. I have updated the main issue with the missing detail. The window also needs to be set to always_on_top: true. Without that, the problem does not exist.

So to summarize: Frameless + transparent + always on top causes this issue, even with the latest RC1 you just shared. Removing either one of those three options makes the window behave correctly when maximized.

@Yonezpt can you sent us your sample app ?

@jtg-gg Certainly, sorry for the delay. This sample app makes use of the package.nw folder method. The contents of that folder are the two files below:

package.json

json { "author": "test", "description": "test", "main": "index.html", "name": "test", "version": "1.0.0", "window": { "id": "test", "always_on_top": true, "frame": false, "transparent": true } }

index.html

````html






Related issues

Asp3ctus picture Asp3ctus  Â·  4Comments

azer picture azer  Â·  3Comments

imyzf picture imyzf  Â·  4Comments

rumax picture rumax  Â·  4Comments

niutech picture niutech  Â·  4Comments