typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Windows positioned with top or bottom of window slightly offscreen

Open loopernow opened this issue 1 year ago • 6 comments

I've noticed that Typora, when opening the first or subsequent windows of a session, places the new windows too high or too low if the previous Typora window was positioned near the top or bottom of the screen, such that most or all of the titlebar is placed above 0 on the y axis, or a similarly small portion of the bottom of the window is placed below the bottommost pixels of the screen. Typora is placing these windows slightly offset from the position of whatever Typora window was open previously, but does not restrict window placement to within the bounds of the screen.

To Reproduce

  1. Open a Typora window and place it so its top edge is fairly close to the top of the screen, let's say within the top 5% or 10% of the screen height. Or place it such that its bottom edge is within the same percentage of the bottom of the screen.
  2. Open a new window with the File > New Window command.
  3. The window will be offset slightly from the first window.
  4. If necessary, repeat Step 2 until a new window is offset enough that it is placed with its top or bottom edge slightly offscreen.

Expected behavior All opened Typora windows should have all pixels within the bounds of the screen when Typora positions its own windows.

Desktop:

  • OS: Windows 10 64-bit

Typora Version 1.7.3

loopernow avatar Nov 12 '23 14:11 loopernow

Assuming my problem is related to window positioning so not opening a new issue.

I often work on multiple monitors. I have found that if I have Typora open on my second monitor, close Typora, unplug my laptop, then reopen Typora later it appears hidden off screen. I've tried the solutions described here but none work. Typora is the only application where I've encountered this issue. Essentially, I cannot use Typora on my laptop unless it's connected to a second monitor.

Using version 1.7.6 on Windows 10.

quinnhornblow avatar Nov 14 '23 03:11 quinnhornblow

Assuming my problem is related to window positioning so not opening a new issue.

I often work on multiple monitors. I have found that if I have Typora open on my second monitor, close Typora, unplug my laptop, then reopen Typora later it appears hidden off screen. I've tried the solutions described here but none work. Typora is the only application where I've encountered this issue. Essentially, I cannot use Typora on my laptop unless it's connected to a second monitor.

Using version 1.7.6 on Windows 10.

@quinnhornblow This is not a solution to your problem, but a workaround (works with any program on Windows 10; not sure about Windows 11):

  • Shift-right-click on the window's taskbar item, or on its pop-up thumbnail in the taskbar if your Typora windows are grouped together under the Typora icon on the taskbar.
  • Choose Move in the context menu.
  • Use the arrow keys to start moving the window.
  • You can continue to use the arrow keys, or you can subsequently use your mouse, until the window is where you want it (somewhere onscreen). Press Enter, or if you using the mouse left-click, to finish positioning the window.

loopernow avatar Dec 02 '23 19:12 loopernow

replates #2225

abnerlee avatar Dec 08 '23 13:12 abnerlee

replates #2225

@abnerlee The commenter @quinnhornblow describes an issue with his multi-monitor setup, but the issue I describe is on a single monitor. @quinnhornblow is describing a different issue.

loopernow avatar Dec 08 '23 15:12 loopernow

Does 1.8.2-dev (https://typora.io/releases/dev) fixed this?

abnerlee avatar Dec 30 '23 10:12 abnerlee

Does 1.8.2-dev (https://typora.io/releases/dev) fixed this?

I would say technically it does, but introduces a new issue--it resizes subsequent windows without the user specifying to do so.

If you keep opening Windows Explorer windows, for example, it does not resize large windows to keep them within the bounds of the screen. Instead, it offsets them very slighly and if necessary runs them along the top edge of the screen.

image

Firefox does something similar.

loopernow avatar Dec 30 '23 15:12 loopernow