hainproject / hain

An 'alt+space' launcher for Windows, built with Electron
http://hainproject.github.io/hain/
MIT License
3.2k stars 155 forks source link

Position on screen is semi-off screen when using two displays with each a different resolution. #267

Open benjaminnaesen opened 6 years ago

benjaminnaesen commented 6 years ago

Here is an example: http://prntscr.com/jow9y4

As visible, the position of the Hain launcher hangs in between the 2 screens.

This happens with the usage of two displays: Resolutions: 1080p and 4K

dannya commented 6 years ago

@benjaminnaesen is this on your 4k monitor? I'm surprised the window is so big, the default size is only ~800 wide / ~550 high.

benjaminnaesen commented 6 years ago

Yes this in on my 4K monitor. (This doesn't happen when not using 2 screens.) As you can see in this picture (http://prntscr.com/jowmpo) It kinda shows at the bottom of the non 4K external monitor too. :D I do have to say I use windows scaling at 225% on the 4K laptop screen so the issue might be caused by that.

dannya commented 6 years ago

@benjaminnaesen are you able to run the version from Git, branch develop?

I've just merged some changes that might impact this that I'd like your feedback on. Thanks.

dannya commented 6 years ago

@benjaminnaesen have you been able to try out the latest code from develop?

jcklpe commented 6 years ago

@dannya I seem to be running into the same problem. It wasn't doing this before but now it is. I'm on a surface book using a MS dock to extend 2 old TVS as monitors through HDMI. I'm using whatever the most recent version that can be installed from executable. .66 I think.

jcklpe commented 6 years ago

Oh yeah also I'm using Display Fusion Pro to do my multi monitor set up which might be part of the issue. I'll test that.

EDIT: Checked it. Turned off DF and it was still wonky. But restarted Hain and it was fine. I think it's just that I have to restart it after I plug in my monitors. It's good now. Maybe this was the same thing for Ben.

Thank you for creating this awesome app and continuing to develop it!

jcklpe commented 6 years ago

actually..... nvm. It's still acting wonky. And it's not just because of display fusion. It acts wonky regardless. My laptop screen is 4k like ben's so I wouldn't' be surprised if it's a similar issue to do with resolution differences.

Kyle-Helmick commented 6 years ago

I hate to revive semi-dead issues buuuuuuuuut, yea I'm having the same issue. I'm finding that alternating which monitor hain is opened on makes it grow in size until it's stretching across both screens.

I don't know a lot about electron apps but could we make the window dimensions constants instead of a datatype that can be changed?

Seems to be semi-fixed in 0.7.0-beta.1, the window no longer grows when alternating monitors but the position on the main monitor will change which is like ok, but not preferred right?