vaadin / flow-components

Java counterpart of Vaadin Web Components
100 stars 66 forks source link

Pin menu window to target - set a fixed position #1510

Closed CookedApps closed 3 weeks ago

CookedApps commented 5 years ago

Hello. We use the context menu to build a custom ComboBox in combination with a button as target (which works great). But the menu always pops up at the current mouse position (as expected). It would be nice if we could "pin" the position of the popup window to the target component, so it only pops up at the position of the target. Is that possible with the Java API?

Or is that somehow possible with the low level API of <vaadin-context-menu>?

Thank you in advance.

web-padawan commented 4 years ago

Sorry about not answering ealier. For anyone who needs it, this is how we do it in the menu bar.

web-padawan commented 3 weeks ago

We now have vaadin-popover component released in v24.5.0 which covers this use case. Closing.