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.

[BUG]: The floating menu is hidden in a container with an overflow:hidden

See original GitHub issue

There is a problem in the positioning with an overflow:hidden container when you are on top. I think the case is not handled in calculateBubblePosition() ?

What if the floating menu was created at the body level like the Mention plugin or ngSelect with their appendTo solution? These are only ideas…

  • Bug report

Example

chrome_2021-03-12_15-53-24

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sibiraj-scommented, Mar 15, 2021

There is a problem in the positioning with an overflow:hidden container when you are on top

that is the expected behaviour when the parent has overflow hidden.

FloatingMenu is exported as component. It can be placed anywhere in the component tree as needed. Also appending the menu to body can be done with few lines of code. I have also made a stackblitz example for the same. Let me know if anything else is required.

Closing the issue for now. Feel free to continue the discussion if required.

0reactions
sibiraj-scommented, Apr 12, 2022

Its simple, You create another component that has floating menu template instead of directly using the component that the editor provides

<ngx-editor-floating-menu [editor]="editor">
  <ngx-editor-menu [editor]="editor">Hello</ngx-editor-menu>
</ngx-editor-floating-menu>

and append that instead of FloatingMenuComponent

this.componentFactoryResolver
      .resolveComponentFactory(<YourComponent>) // instead of `FloatingMenuComponent`

Please create a new discussion, if you need more help. this is off topic to this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap dropdown clipped by overflow:hidden container ...
The idea is to set min-height to the article equal to the height of the menu and position the button at the bottom...
Read more >
Popping Out of Hidden Overflow - CSS-Tricks
I'll let Agop explain. So you're tasked with creating a scrollable menu with submenus that pop out when you hover over a parent...
Read more >
Sticky menu issue but no overflow hidden - Forum | Webflow
The problem is that there are elements that go outside the width of the page and if that is the case the sticky...
Read more >
overflow - CSS: Cascading Style Sheets - MDN Web Docs
Similar to hidden , the content is clipped to the element's padding box. The difference between clip and hidden is that the clip...
Read more >
CSS 'position: sticky' not working? Try 'overflow
The hidden value only disables scrolling for the user, while keeping the option for programmatic scrolling, thus making it a scroll container.
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