primereact icon indicating copy to clipboard operation
primereact copied to clipboard

OverlayPanel : Add the position property

Open kazamov opened this issue 4 years ago • 0 comments

I'm submitting a ... (check one with "x")

[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior Currently I cannot set the position to the OverlayPanel component. Even when I tried to set the coordinated manually, current logic override them.

Expected behavior There is a position property which allows to set the OverlayPanel component position relatively to the target element, or at least some API which allows to calculate the position externally. The good example of the requested behavior you can find in the react-popup library https://react-popup.elazizi.com/component-api#position

  • React version: 17.0.2

  • PrimeReact version: 6.5.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] all

  • Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript 4.4.3

kazamov avatar Sep 29 '21 05:09 kazamov