QMenu - need to be notified when it changes position due to position of target #13323
Replies: 14 comments 5 replies
-
|
Would it be possible to add something like |
Beta Was this translation helpful? Give feedback.
-
|
Interesting case. Need to think about it |
Beta Was this translation helpful? Give feedback.
-
|
I played a little bit with the menu positioning here - https://quasar.dev/vue-components/menu#positioning For example So for my case just receiving "original" or "altered" would be fine. And keep in mind that since I know the settings for Please correct me if I'm wrong somewhere. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, any progress on this request? thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Not yet - I haven't found a marking system that would make sense yet |
Beta Was this translation helpful? Give feedback.
-
|
OK, maybe I'm not understanding the problem you're facing very well but:
Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @pdanpdan any solution on this? Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
any news on this? |
Beta Was this translation helpful? Give feedback.
-
|
not yet, sorry |
Beta Was this translation helpful? Give feedback.
-
|
Dear @pdanpdan I did some digging and allow me to share my thoughts and findings.
In applyBoundaries(props, anchorProps, targetProps, cfg.anchorOrigin, cfg.selfOrigin)
So... the idea is simple:
{
up: true,
down: false,
left: false,
right: false
}the above would mean that the menu has been repositioned 'up', i.e. the 'actual' What do you think? |
Beta Was this translation helpful? Give feedback.
-
|
The main problem is that the positioning algoritm is long due for a refactoring and needs fixing for some issues. That is the reason i would not touch it for the moment |
Beta Was this translation helpful? Give feedback.
-
|
any news on this? |
Beta Was this translation helpful? Give feedback.
-
|
news on this? |
Beta Was this translation helpful? Give feedback.
-
|
any update? it's been years now... |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have wrapped QMenu in order to add a pointer (triangle) to its side.
But QMenu changes its position based on where (relative to screen top/bottom edges) the target/trigger element is positioned - when it's close to top, the menu is shown below the element, when it's close to bottom, the menu is shown above the element:

so I need to know where the menu will be positioned, relative to the target element so that I can update my css to move the arrow to the appropriate side.
How can I get this info from QMenu? Or is there any other way to find out how will QMenu be positioned?
Beta Was this translation helpful? Give feedback.
All reactions