-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug Report: UI not centered/outside screen #137
Comments
I'm recovering from eye surgery and find it difficult to do any coding right now. I'll look into this in a week to 10 days. Thanks, |
Thank you so much! |
Did the surgery go smoothly? Are you seeing things clearly now? |
Thanks for asking. The surgeries (one for each eye) went well. My distance vision is better than it has been in many years. For that I am grateful. The issue that I'm having is with my near vision. You know, for silly stuff like computer and phone screens. I'm in that "in between" phase where I'm waiting for my next appointment with the specialist. If he determines that everything is good, then I get sent back to my regular eye doctor for an exam and hopefully a prescription for glasses to wear when I need to see screens, etc. Until then I've gotten some reading glasses from the pharmacy that I can use. However, wearing them for a long time isn't ideal. Obviously, I missed my original estimate of when I could get back to looking into issues. Hopeully that will be soon. In the meantime, could you restate the issue you are having with the remote desktop session? I don't think that I completely understand. 🤔 I have managed to create a fix for the window not restoring to the center of the screen. Tim |
Good to hear that your vision is getting better! Take your time to recover! Regarding the RDP issue: After connecting to my desktop via RDP, the application windows appear partially invisible. When I resize the window from the bottom or left side, the application becomes fully visible again. Fully Visible After Resizing |
Does the desktop computer have multiple monitors in use? Does the desktop computer monitor and the computer that you are connection from have the same screen resolution? |
Does the desktop computer have multiple monitors in use? Does the desktop computer monitor and the computer that you are connection from have the same screen resolution? |
Thanks for the info. I'm going to handle window partially (or completely) off screen like this:
Click here to see the code if you're interested. if (_mainWindow.Top < SystemParameters.VirtualScreenTop)
{
_mainWindow.Top = SystemParameters.VirtualScreenTop;
}
if (_mainWindow.Left < SystemParameters.VirtualScreenLeft)
{
_mainWindow.Left = SystemParameters.VirtualScreenLeft;
}
if (_mainWindow.Left + _mainWindow.Width > SystemParameters.VirtualScreenLeft + SystemParameters.VirtualScreenWidth)
{
_mainWindow.Left = SystemParameters.VirtualScreenWidth + SystemParameters.VirtualScreenLeft - _mainWindow.Width;
}
if (_mainWindow.Top + _mainWindow.Height > SystemParameters.VirtualScreenTop + SystemParameters.VirtualScreenHeight)
{
// WorkArea.Size.Height is the height of the desktop minus the taskbar
_mainWindow.Top = SystemParameters.WorkArea.Size.Height + SystemParameters.VirtualScreenTop - _mainWindow.Height;
} The window position will be checked when:
I'm going to create a new option that will control if this behavior is active or not, so it can be turned off in case it doesn't work as expected. I'll also create an option for the restoring to the center of the screen behavior. That's all for today. Eyes are tired. Tim |
Nice work! Thanks. i will download and test the new release when it is available. |
During my testing I've discovered that, on my development machine, the built-in method to start an application centered on the screen is off by 5 px vertically. It's that way with Windows Terminal too. I'm not going to sweat it. |
Version 0.14.0 has been released with the fixes for your issues. |
Is there an existing issue for this?
What happened or didn't happen?
When the program is opened it is partial outside the desktop in a remote desktop session. When i resize the window (to the left or right) it is complete visible again. I think it has something to do with the different resolutions, and a possible -bug- with a option in the UI settings.
Started with window centered on screen
I checked this option, but it does not center the UI from tray (re-open)/shortcut. It is only restored in the middle of the screen on first start.
Steps To Reproduce
open tool
check Started with window centered on screen
move window to right side
minimize to tray
reopen tool
it is on right side.
close/exit tool
open tool
the window is centered if Started with window centered on screen is checked.
GetMyIP_Settings_20250116.json
Version
latest
Windows Version
Microsoft Windows 10.0.26100
Include application settings in use at the time the bug was encountered.
Relevant log output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: