Can't position/resize Microsoft Visual Basic window (opened within Excel)

Open
#1,255 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, swift, visualbasic

Research direction

Start by reproducing the issue with Microsoft Visual Basic for Applications opened within Excel on macOS Ventura, using the reported Rectangle shortcuts and corner drag behavior. Review the supplied accessibility logs, especially the proposed and resulting position and size, and compare the first shortcut with successive shortcuts. Done means the Visual Basic window reliably moves and resizes to the selected Rectangle position without reverting or being clipped.

Written by the indexing model from the issue text.

Description

bug
  • This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: Ventura 13.5.1
Rectangle version: 0.70 (76)

Logs if applicable (In Rectangle menu, hold option, "View Logging...") 2023-09-11T15:23:22-07:00: AX sizing proposed: (967.0, 944.0), result: (967.0, 944.0) 2023-09-11T15:23:22-07:00: AX position proposed: (-3339.0, -993.0), result: (-3339.0, -993.0) 2023-09-11T15:23:22-07:00: AX sizing proposed: (967.0, 944.0), result: (967.0, 944.0) 2023-09-11T15:23:22-07:00: topLeft | display: (-3808.0, -98.0, 3808.0, 2135.0), calculatedRect: (-3808.0, -1055.0, 1904.0, 1067.0), resultRect: (-3658.0, -877.0, 967.0, 944.0), srcScreen: 43S423, destScreen: 43S423, resultScreen: 43S423 2023-09-11T15:23:28-07:00: Window under cursor fallback matched: Bartender 4 WindowInfo(id: 54, frame: (-3840.0, -1081.0, 10000.0, 25.0), pid: 1654, processName: "Bartender 4")

Hi! Have been using Rectangle since Spectacle stopped being maintained. LOVE THE APP. I recommend it to everyone who I find using macOS. PLEASE KEEP UP THE GOOD WORK.

Anyhoo, I'm needing to write Visual Basic for Applications within Excel (aka "Macros"). Yeah, they're still around -- and still have the same warning because...yes...they can be dangerous.

So Rectangle will let me move around the Excel row/column grid windows. However, when I try to use the Rectangle keyboard shortcuts to maneuver the Microsoft Visual basic window for the Excel file...it sorta "glitches" for a moment (like in Wreck-It-Ralph) and then just ends up where it was originally. If I try to move-and-resize the Visual Basic window with a few keyboard strokes in a row, the "glitch" only happens with the first keyboard shortcut; there's no "glitch" with the second, third, or fourth successive keyboard shortcut.

Dragging and dropping onto a corner also causes no placement and resize to fit the Rectangle-displayed shadow. If I dragged it into the upper-left-corner, the right portion of the Visual Basic window just shows.

Ideas?

Dominant language
Swift
Stars
29.9k
Forks
997
Avg merge
4d 16h
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rxhanson/Rectangle

All issues in rxhanson/Rectangle

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.