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

BUG:win.setPosition('center') Invalid!

Open mb5u opened this issue 12 years ago • 8 comments

BUG:win.setPosition('center') Invalid! Hope that as soon as possible to repair!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

mb5u avatar Sep 06 '14 13:09 mb5u

What's your OS version?

rogerwang avatar Sep 06 '14 13:09 rogerwang

win7 64

mb5u avatar Sep 06 '14 13:09 mb5u

Sorry my English is bad. All my words are translated. I hope you can understand.

mb5u avatar Sep 06 '14 13:09 mb5u

var gui = require('nw.gui');var win = gui.Window.get();win.resizeTo(1020, 700);win.moveBy(100, 0);

The above can be run

Only the following can not run

win.setPosition('center')

mb5u avatar Sep 06 '14 14:09 mb5u

I also appeared such problems

wangjiangshan avatar Sep 24 '14 06:09 wangjiangshan

Hope to solve this problem, I also met!

wangyazhen avatar Oct 11 '14 03:10 wangyazhen

Duplicate of #1805

adam-lynch avatar Oct 17 '14 15:10 adam-lynch

This should be working with latest version now.

In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.

The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.

nwjs-bot avatar Jul 12 '16 00:07 nwjs-bot