max-mapper / max-mapper/menubar

setSize need reset the position

Open
#349 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.8k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

Description

when i use mb.window.setSize(150, height) change the size, it need to reset the position

Steps to Reproduce the Problem
  1. traySide is 'bottom'
  2. focus in mb window
  3. mb.window.setSize(150, height)
  4. part of mb window is over hidden
Expected Behaviour

reset the position when setSize()

Actual Behaviour
Specifications
  • Menubar version: 9.0.5
  • Platform: windows
  • Electron version: (Run electron -v or node_modules/.bin/electron -v to get it)
Other information

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.

Research direction

Start from the mb.window.setSize() entry point and reproduce the issue on Windows with traySide set to 'bottom'. Resize the focused window to 150 by height and inspect how its position is handled; done means the window is repositioned so no part is hidden after setSize().

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.