Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More alignment options to OverlayPanel #2567

Closed
dhniels opened this issue Apr 21, 2017 · 24 comments
Closed

More alignment options to OverlayPanel #2567

dhniels opened this issue Apr 21, 2017 · 24 comments
Labels
Type: New Feature Issue contains a new feature or new component request

Comments

@dhniels
Copy link

dhniels commented Apr 21, 2017

[x] feature request

Looking for a way to align the overlay panel, by default it aligns the top and left edge to its parent element, but it would be nice to have other ways to align it.

For example:

  • top-left
  • top-center
  • top-right
  • bottom-left
  • bottom-center
  • bottom-right
  • right-top
  • right-center
  • right-bottom
  • left-top
  • left-center
  • left-bottom
@cagataycivici cagataycivici changed the title set alignment on OverlayPanel More alignment options to OverlayPanel Jun 22, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Jun 22, 2017
@PikaChokeMe
Copy link
Contributor

This would be an extremely helpful feature to have as the current positioning of the overlay panel in conjunction with my current pages layout leads to the overlay getting cut off at certain browser resolutions.
This essentially makes the panel in it's current state useless.

@dhniels
Copy link
Author

dhniels commented Nov 10, 2017

Any updates on this feature? Ideally you could do something like this with it (add a little arrow pseudo element and position it to an element instead of the default left/top corner):

screen shot 2017-11-10 at 12 20 26 pm

@mkp05
Copy link

mkp05 commented Dec 4, 2017

Any news about this feature? For a start is range similar to "tooltipPosition" from tooltip component would be enough (especially as tooltip does not accept a HTML for a text, so it's impossible to put for example an image in the tooltip - need to use OverlayPanel).

@dhniels
Copy link
Author

dhniels commented Feb 16, 2018

I found this example of a popover (built on Angular CDK) that provides a horizontalAlign and verticalAlign option set that is exactly what I'm looking for. I just tried using it in my app and I like it a lot.

Check it out @cagataycivici ! There are some additional neat options provided. I think PrimeNG should glean some of the functionality ideas theyve employed here. Adding an arrow on top of that would make OverlayPanel a killer component :)

@JacobSiegle
Copy link
Contributor

Seems like if this was implemented it would be useful in implementing #5213.

@televic-education-ruben
Copy link
Contributor

Is this feature on the roadmap for the near future? If you want, I can implement this and create a pull request for it...

@Merve7 Merve7 added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jul 5, 2018
@Merve7 Merve7 added this to the 6.0.1 milestone Jul 5, 2018
@Merve7 Merve7 removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jul 6, 2018
@cagataycivici cagataycivici modified the milestones: 6.0.1, 6.1.0 Jul 9, 2018
@cagataycivici cagataycivici modified the milestones: 6.1.1, 6.1.2 Aug 12, 2018
@cagataycivici
Copy link
Member

cagataycivici commented Aug 12, 2018

Planned for 6.1.3.

@cagataycivici cagataycivici removed this from the 6.1.3 milestone Aug 29, 2018
@SwintDC
Copy link

SwintDC commented Aug 30, 2018

Is the development for this already started? And is it planned for the 6.1.3 or 6.1.4 release? This is a feature we really need urgently. If the development is not started yet by the primeng team, would you consider merging a pull request created by us?

@caitlinrouille
Copy link

Why was this removed from the 6.1.3 milestone? Please consider the pull request from SwintDC, not sure what the thumbs down was all about but any additional hands is appreciated by the community.

@JacobSiegle
Copy link
Contributor

Thumbs down because the prev comment to cagataycivici asks about putting in a PR and he ignored it which means they must want to do it internally (also backed by "Planned for 6.1.3.") and will not accept a PR.

In the latest dev blog they state they have pushed it back to 7.0, "big ticket new features like the new DialogService and OverlayPanel enhancements will be in 7.0.0".

@thomassanders
Copy link

Any news on this feature? I suppose this is not part of 7.1.0 yet?
Thanks for the update!

@moshmage
Copy link

moshmage commented Sep 3, 2019

version 8.x is out and exists, but this feat has been pushed into limbo?

@c123dl
Copy link

c123dl commented Sep 9, 2019

no support yet? i hate to say if there is no support i will have to use something else,
but is seems like no proggress for overlay panel issues at all.

@CronGM
Copy link

CronGM commented Sep 13, 2019

This is a feature that paid clients are requesting and it's sadly being ignored. If it's not being developed internally at least they should accept open PRs from the community.

@JacobSiegle
Copy link
Contributor

The project is open source so you can build it yourself for your own personal use. After drop in a PR and hope for the best. If they decline it you can always still share your fork with others here.

@jpgoelz
Copy link

jpgoelz commented May 29, 2020

Still nothing?

@augustobreno
Copy link

Also waiting for this fix.... after more then 3 years.

@komaira
Copy link

komaira commented Apr 15, 2021

Any update on this request?

@AxTulti
Copy link

AxTulti commented Aug 27, 2021

Just as an idea if someone really needs to make this work urgently, I came up with a "fix", it is a bit hacky, but it does the job.
I was trying to make the p-overlayPanel work on smaller screens (such as smartphones or tablets), but they tend to overflow the screen, so I inserted a <style> tag, to modify the p-overlayPanel aspect on smaller screens, it looks something like this:
<style> .p-overlaypanel { left: 5% !important; right: 5% !important; } </style>
The tag modifies the overlay position, to be 5% away from left and right, thus making it work on smartphones and tablets, i know it is not clean, but it works, and when used with media query's, it results in a much better UI.
So, in my case it passed from this:
image
to this:
image
By the way, sorry for the text in Spanish, the project I'm working on is in Spanish.
Well, hope this is useful, if someone finds a cleaner solution, please let us know.

@daniatic
Copy link

Any updates on this?

@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap?
Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

@Michael-Ziluck
Copy link

This was not completed and needs to be reopened @mertsincan

@ysk3a
Copy link

ysk3a commented Jun 19, 2023

Has it been added behind the scene and not in the documentation?
The overlaypanel is opening on top of my other components when I would like it to open top right or top center.
It would be nice to have more alignment options to control where to position the overlaypanel so that i can make it overlap on elements that are ok to overlap or not.
Using v16.0.1.

@Michael-Ziluck
Copy link

This issue was recreated as #13025 for anyone looking for an open ticket. Anyone who reacted to this issue should re-react over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests