question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

menu is wrongly placed at bottom

See original GitHub issue

Are you reporting a bug or runtime error?

I think it’s a bug. menuPosition is default (auto). When there is no enough space for menu, it still appears in the bottom. The reason is: In Menu.js, this getMenuPlacement will calculate a wrong menuHeight. In my situation, the menu will load data asynchrously, so it will display ‘Loading’ (loading message) in the menu first, then the data after it’s loaded. But getMenuPlacement only calculates the height of ‘Loading’ and decides to put the menu at the bottom.

Expected

should calcuate the menuHeight when the data is loaded and decides the placement again.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
ebonowcommented, Mar 17, 2021

@hasakilol got it. We’ll be looking at this in the very near future. We’re updating from Flow to Typescript and this type of behavior will be the next on the list.

0reactions
hasakilolcommented, Mar 18, 2021

react-select In contrast, when using react-select, the placement is wrong and falls into // 1: the menu will fit, do nothing My Suggestion is: Maybe react-select should recalculate the placement when options change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

start menu in the wrong place - Microsoft Community
right click on taskbar, make sure it unlocked then press and hold left click on taskbar & move to bottom. 1 person found...
Read more >
Drop-down menus appearing in the wrong place
I'm having issues with drop-down menus appearing in the wrong place. In particular, when I open up an application, whether it's a Finder ......
Read more >
md-menu wrong position #1116 - angular/components - GitHub
when i click the button,the menu appear on bottom... All reactions.
Read more >
Stop placing the menu button in the wrong corner
Stop placing the menu button in the wrong corner · It can hold lots of content · It doesn't take up much space...
Read more >
Why is the Windows taskbar default at the bottom?
To my knowledge it was not a design issue but a technical one in win 95. The taskbar should be at the top,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found