Skip to content

fix(setSize): reset position when setSize#350

Open
binvb wants to merge 2 commits into
max-mapper:masterfrom
binvb:reset_position
Open

fix(setSize): reset position when setSize#350
binvb wants to merge 2 commits into
max-mapper:masterfrom
binvb:reset_position

Conversation

@binvb
Copy link
Copy Markdown
Contributor

@binvb binvb commented Jul 8, 2021

@WINBIGFOX
Copy link
Copy Markdown

Hi @max-mapper,
is it possible for this PR to be merged into Main and a new release created? 🙏🏻

I think it is a useful function to be able to trigger the repositioning yourself.

@amaury1093
Copy link
Copy Markdown
Collaborator

Sure. @binvb can you rebase/merge master?

afonsojramos added a commit to gitify-app/menubar that referenced this pull request May 10, 2026
Extracts the position calculation out of `showWindow` into a focused,
synchronous `positionWindow` arrow field, and hooks it to the browser
window's `resize` event. After `mb.window.setSize(...)` the window
re-anchors to the tray, fixing the upstream issue where part of the
window ended up clipped by the taskbar.

`showWindow` now caches the latest tray bounds before calling
`positionWindow`, keeping the cache as the single source of truth that
the resize handler reads from.

Closes the gap from upstream max-mapper#350 by @binvb /
max-mapper#349.
afonsojramos added a commit to gitify-app/menubar that referenced this pull request May 11, 2026
Extracts the position calculation out of `showWindow` into a focused,
synchronous `positionWindow` arrow field, and hooks it to the browser
window's `resize` event. After `mb.window.setSize(...)` the window
re-anchors to the tray, fixing the upstream issue where part of the
window ended up clipped by the taskbar.

`showWindow` now caches the latest tray bounds before calling
`positionWindow`, keeping the cache as the single source of truth that
the resize handler reads from.

Closes the gap from upstream max-mapper#350 by @binvb /
max-mapper#349.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants