question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window.title does not update nw window title

See original GitHub issue

Windows XP SP3, node-webkit v0.11.5.

When I try to change the Window.title property by this API, the nw window title changes only in the application’s button on the Windows taskbar. To change the very nw window title I must do one of these window operations:

Window.minimize(); Window.restore(); Window.hide(); Window.show(); Window.resizeBy(x, y); Window.resizeTo(x, y);

or I must do something like that manually.

Window moving does no effect.

document.title has the similar issue.

May be this title update issue and the active/non-active style update issue are somehow connected.

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
credomanecommented, Feb 16, 2018

Needs reopening as this issue is still present in nwjs 0.28.1.

[edit]
Well it actually seems to only be partially present.

Duplicating the title change code seems to ensure it always changes.

document.title="myNewTitle";
document.title="myNewTitle";
1reaction
llxwjcommented, Mar 19, 2015

Windows XP SP3,nwjs-v0.12.0-win-ia32. I also found this problem, use the document.title= "value"; and require ("nw.gui").Window.get().title="value";, are unable to update title bar immediately, only in the switch Windows application window, and then switch to the node-webkit window, only to find that the title of the content change.Should be the “value” set to memory, but no paintings to the title bar. Chinese:只有在切换了Windows的窗口后,再切换到node-webkit窗口,这时才发现标题栏的内容发生了变化.应该是把"value"设置到了内存,但是没有绘画到标题栏上.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the window title when focussing the window doesn't ...
When I come from a different window, the title gets updated correctly, but when I come from a different tab within the same...
Read more >
Missing MDI Child Window title in Window list - MSDN
I am working to fix a bug in a relatively old C++ Windows app. The app uses a Multiple-Document Interface with a number...
Read more >
Window title or part title not working - WorkFusion Forum
Hi, I am using “Enter Window Title or part of title” to switch between windows as my window name can change. But it...
Read more >
document.title does not dynamically update when the contents ...
SetTitle just needs to make the DOM changes that the HTML5 spec describes, and then the window title will update automatically. Ryan Jones- ......
Read more >
Changing window tittle | Apple Developer Forums
When it's not a document window, then you just use the NSWindow property "title". The window controller isn't involved at all, except of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found