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

[Linux] in 0.7.x it's not possible to move windows beyond bounds of visible screen space. #1152

Closed
miklschmidt opened this issue Sep 26, 2013 · 7 comments

Comments

@miklschmidt
Copy link

Tested on Linux Mint Cinnamon (Debian) x86 and x64.
See #1043 for code to reproduce. This is the same issue as #1043, just on linux instead of OSX.

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

@miklschmidt
Copy link
Author

This didn't actually work in 0.6.3 either (inconsistent with other platforms), which makes this a feature request. I don't know if it's even possible to do this on linux.

@kingFighter
Copy link
Contributor

I can confirm it on Linux debian nw 0.6.3-0.7.5 with the code provided

@adam-lynch
Copy link

This happens on Mac & Windows too. See #2391

@stale
Copy link

stale bot commented Sep 30, 2017

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 stale bot added the stale label Sep 30, 2017
@miklschmidt
Copy link
Author

It's still an issue, but i guess everybody has found workarounds by now.

@stale stale bot removed the stale label Sep 30, 2017
@rogerwang
Copy link
Member

CC @Christywl please verify.

@Christywl
Copy link
Contributor

@miklschmidt , the result on my Linux with nwjs-sdk-v0.25.4:

nw.Window.open('1.html', {
  frame: false,
  width: 400,
  height: 0,
  always_on_top: true,
  show: false,
  resizable: false
},function(newWindow){

newWindow.on('loaded', function() {
  var x;
  newWindow.show();
  x = newWindow.window.screen.availLeft + newWindow.window.screen.availWidth;
  console.log('x: ' + x);
  console.log('availWidth: ' + newWindow.window.screen.availWidth);
  newWindow.moveTo(x, 0);
  newWindow.resizeTo(400,200);
});

1152-1
If comment out moveTo(), the result is:
//newWindow.moveTo(x, 0);

1152-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants