Page 1 of 1
Keep dialogs inside visible monitor areas
Posted: 07 Mar 2020 21:39
by tonifelfe
Ctrl-Q dialogs position is out of the visible are on 2nd monitor. Resizing the dialog fixes this but may be you can prevent this behaviour at the beginning.
Re: Keep dialogs inside visible monitor areas
Posted: 08 Mar 2020 09:31
by admin
You mean it restores its position on the 2nd monitor even if the 2nd monitor is off?
Re: Keep dialogs inside visible monitor areas
Posted: 08 Mar 2020 10:11
by tonifelfe
no, both monitors are on. top left corner is outside the screen.
Re: Keep dialogs inside visible monitor areas
Posted: 08 Mar 2020 10:27
by admin
The idea is that it restores its previous position. So that does not work?
No, that top left corner should be inside the screen. Could you do this, please:
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 08:53
by tonifelfe
I have tried. Opened XYplorer (on 1st screen), opened Ctrl-Q window (on 2nd screen?!), "screen;"-command - XYplorer crashes. No error message.
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 09:55
by admin
No, I meant do
screen; without any Ctrl-Q window opened. I just want to see the properties of your monitors.
But by doing what you did you found a good bug!

Thanks for that, fix is coming...
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 10:39
by tonifelfe
Screen
XYplorer 20.80.0300 - Windows 10 Enterprise, 64-bit, Release 1909, Build 18363.657
Virtual Screen: (-1366, 0) - (3046, 1055)
Screen.Width (screenW) = 1680 (1680)
Screen.Height (screenH) = 1050 (1050)
Current Monitor: 2 (Primary)
Current Work Area: (0, 0) - (1680, 1010)
Number of Monitors: 2
Monitor 1 Area: (-1366, 287) - (0, 1055) = 1366x768
Monitor 1 Area Work: (-1366, 287) - (0, 1015)
Monitor 2 Area: (0, 0) - (1680, 1050) = 1680x1050
Monitor 2 Area Work: (0, 0) - (1680, 1010)
Startup Work Area: (0, 0) - (1680, 1010)
GetCursorPos = 460, 95
XY Main Window: (-8, -8) - (1688, 1018) = 1696x1026
Screen DPI: 96 (100%) twx: 15 (15) stretch: 1 sLF: 1
Screen Color Depth: 32
DPI awareness: Per monitor
Auto Scaling: Yes
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 11:50
by admin
So the dialog is positioned outside of the left monitor, so its horizontal position is smaller than -1366?
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 12:03
by tonifelfe
yes
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 12:46
by admin
Weird. I cannot see how this is possible.
What when you drag the dialog to a good position (so it's completely visible), then close it, then re-show it? It does not remember that position?
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 13:10
by tonifelfe
Drawing a borderline snaps the dialog into visible canvas - but the dialog doesnt remember this nice position.
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 13:38
by admin
Do you have a screenshot? It might give me an idea...
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 14:38
by tonifelfe
Re: Keep dialogs inside visible monitor areas
Posted: 10 Mar 2020 15:02
by admin
Okay, that helped. Should be fixed in next version.
BTW, next time please attach images within the forum, like this: