Loop icon indicating copy to clipboard operation
Loop copied to clipboard

🐛 Undo Loop function truncates window size for windows that were not completely on the screen

Open adly42 opened this issue 1 year ago • 1 comments

Bug Description

If a window is half off the screen, then looped to a different position, using the Undo Loop function does not restore the window to its original size. Whatever part of the window that was visible on the screen will become the new window's dimensions.

Steps To Reproduce

  1. Create a new window of any Loop-supported program
  2. Move the window so that part of the window is off screen
  3. Use Loop to move the window to a new position
  4. Undo Loop to revert the window to its offscreen position and dimensions
  5. (Optional) Click and drag the window to see that its dimensions were truncated by the screen's boundaries

Expected Behavior

The Undo Loop function should restore the window's previous size and dimensions, even if part of it is off screen.

Actual Behavior

The Undo Loop function truncates a window's dimensions for edges that leave the bounds of the screen (i.e., go offscreen).

Screenshots

https://github.com/MrKai77/Loop/assets/86716906/36076261-48a2-4133-96eb-5c01bb5433e0

MacOS Version

Sonoma 14.0

Loop Version

Version 1.0.0-beta.15 (817)

Additional Context

No response

Final Checks

  • [X] My issue title is descriptive
  • [X] This is a single bug (multiple bugs should be reported individually)

adly42 avatar May 01 '24 19:05 adly42

This seems to be caused by Loop still applying window padding (of 0 pt in this case) to the window, which causes it to be cropped to fit on the screen. Will fix!

MrKai77 avatar May 01 '24 23:05 MrKai77