Does popup with an absolute position ignore the collision behavior?

1 Answer 107 Views
Popup
Thomas
Top achievements
Rank 2
Iron
Thomas asked on 25 Oct 2021, 01:55 PM

Hi,

it seems, that the boundary detection is not working for popups without an anchor but with an absolute position (offset).

this.popupService.open({
	offset: {
		left: clickArgs.point.x,
		top: clickArgs.point.y,
		},
    	collision: { horizontal: 'flip', vertical: 'fit' },
        content: MyComponent
});

The collision settings have no effect.

Best regards,
Thomas

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 28 Oct 2021, 08:08 AM

Hello Thomas,

Thank you for the provided code snippet.

I checked the markup in a StackBlitz example, but it looks like the viewport boundaries are detected when Popup is positioned through its left and top offset properties. See the screencast below:

https://screenrec.com/share/1zoJqEuNvg

Here is the example used for testing purposes:

https://stackblitz.com/edit/angular-6quv7z

Please could I ask you to check it and let me know if I am missing something. Thank you in advance.

Regards,
Martin
Progress Telerik

Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.
Tags
Popup
Asked by
Thomas
Top achievements
Rank 2
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or