0

I have a navbar with a button, when i click the button it opens the prime ng menu. Inside the primeng menu I inserted an [AppendTo]="body", actually I tried to bind it also to the external div but the problem is that when in the page I scroll down and subsequently open the menu through that button the menu it pops up in the middle of the page and not near the memo button, how can i fix this?

I expect the opened menu to stay close to the button both when the scrollbar hasn't been moved and when moved up and down.

Hold
  • 11
  • 2

1 Answers1

0

Try using the solution stated here, because appending to body will not attache it to your button.
Hope it helps.
Also, consider reading the how to ask.

yodamousta
  • 156
  • 9