jQuery UI Widgets › Forums › Dialogs and Notifications › Tooltip, Notification, Popover › How to center the jqxpopover on the screen
This topic contains 3 replies, has 2 voices, and was last updated by Stanislav 2 years, 6 months ago.
Can you please provide advice on how I can center a jqxPopover window on the screen, irregardless of where the trigger element is located? Thask you.
Here is an example: Example
You could use the popover’s API: ‘offset’.
With it, you can find the total width/height of the window you are showing it, and place the popover in that exact location.
Thanks but this is not a solution. It’s not centered absolutely on the screen and it really only seems left to right centered because your button is centered on the screen.
Is there a way to position the jqxpopover absolutely on any screen at the center, irregardless of where the trigger element is located?
It doesn’t matter where the button is positioned.
With offset you set the left and top position of the popover.
You can position the popover anywhere in the content window.
You must be logged in to reply to this topic.